Mercurial > hg > orthanc
diff Core/ImageFormats/JpegReader.cpp @ 1610:2dff2bdffdb8
font support within Orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Sep 2015 13:44:21 +0200 |
parents | fd0464ce1962 |
children |
line wrap: on
line diff
--- a/Core/ImageFormats/JpegReader.cpp Wed Sep 02 15:07:47 2015 +0200 +++ b/Core/ImageFormats/JpegReader.cpp Fri Sep 04 13:44:21 2015 +0200 @@ -76,8 +76,8 @@ throw OrthancException(ErrorCode_NotEnoughMemory); } - accessor.AssignReadOnly(format, cinfo.output_width, cinfo.output_height, pitch, - content.empty() ? NULL : content.c_str()); + accessor.AssignWritable(format, cinfo.output_width, cinfo.output_height, pitch, + content.empty() ? NULL : &content[0]); uint8_t* target = reinterpret_cast<uint8_t*>(&content[0]); while (cinfo.output_scanline < cinfo.output_height)