From 2a821a52ae45ad2a9935843b940ba64dbeec8a9f Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Mon, 10 Oct 2011 15:11:10 +0000 Subject: [PATCH] #793: Set PNG comment correctly. (Thomas Beutlich) --- src/pngchunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pngchunk.cpp b/src/pngchunk.cpp index 561dc1a0..929b974b 100644 --- a/src/pngchunk.cpp +++ b/src/pngchunk.cpp @@ -400,7 +400,7 @@ namespace Exiv2 { && memcmp("Description", key, 11) == 0 && pImage->comment().empty()) { - pImage->comment().assign(reinterpret_cast(arr.pData_), arr.size_); + pImage->setComment(std::string(reinterpret_cast(arr.pData_), arr.size_)); } } // PngChunk::parseChunkContent