From e3d2c7491b799f40aa0fa42c50bfa65a28e6684e Mon Sep 17 00:00:00 2001 From: vog Date: Mon, 20 Jun 2011 01:10:37 +0000 Subject: [PATCH] #689: Workaround for handling Exiftool's XMP embedding into EPS --- src/epsimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/epsimage.cpp b/src/epsimage.cpp index c4dcd69f..41c06dd6 100644 --- a/src/epsimage.cpp +++ b/src/epsimage.cpp @@ -240,7 +240,7 @@ namespace Exiv2 const size_t startPos = pos; pos = readLine(line, data, startPos, size); // implicit comments - if (line == "%%EOF" || !(line.size() >= 2 && line[0] == '%' && '\x21' <= line[1] && line[1] <= '\x7e')) { + if (line == "%%EOF" || line == "%begin_xml_code" || !(line.size() >= 2 && line[0] == '%' && '\x21' <= line[1] && line[1] <= '\x7e')) { if (posEndComments == size) { posEndComments = startPos; #ifdef DEBUG