Mercurial > hg > orthanc-wsi
changeset 211:7459819f3176
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 15:09:05 +0100 |
parents | cab272485c38 |
children | f1ea48f92d66 |
files | Framework/ImageToolbox.cpp ViewerPlugin/Plugin.cpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/ImageToolbox.cpp Fri Nov 06 17:45:36 2020 +0100 +++ b/Framework/ImageToolbox.cpp Mon Nov 09 15:09:05 2020 +0100 @@ -220,7 +220,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); } - writer->WriteToMemory(target, source); + Orthanc::IImageWriter::WriteToMemory(*writer, target, source); } }
--- a/ViewerPlugin/Plugin.cpp Fri Nov 06 17:45:36 2020 +0100 +++ b/ViewerPlugin/Plugin.cpp Mon Nov 09 15:09:05 2020 +0100 @@ -219,7 +219,7 @@ std::string png; Orthanc::PngWriter writer; - writer.WriteToMemory(png, *decoded); + Orthanc::IImageWriter::WriteToMemory(writer, png, *decoded); OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, png.c_str(), png.size(), "image/png"); }