diff options
author | Jakub Alba <jakubalba@gmail.com> | 2016-08-23 13:20:44 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2016-10-23 23:02:16 +0200 |
commit | 269a91e3b03a19acc06fd0f72356f2e48a6368a7 (patch) | |
tree | 746a9778fd677f12d00faab636a2273ec2a81cba | |
parent | 43cfdf9de45e6833a2815b173f8cc945f1c5f9d6 (diff) |
PDFDoc::setDocInfoStringEntry(): treat value consisting of just the unicode marker as an empty string
-rw-r--r-- | poppler/PDFDoc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index f81fa75f..587b2be2 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -615,7 +615,7 @@ void PDFDoc::setDocInfoModified(Object *infoObj) void PDFDoc::setDocInfoStringEntry(const char *key, GooString *value) { - GBool removeEntry = !value || value->getLength() == 0; + GBool removeEntry = !value || value->getLength() == 0 || value->hasJustUnicodeMarker(); if (removeEntry) { delete value; } |