[poppler] poppler/GfxFont.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Sep 24 05:20:43 PDT 2008
poppler/GfxFont.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 38884e1722ac7e15c62cece20035c5fb0020f4b3
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Sep 24 14:18:38 2008 +0200
Do what Jeff really want to do, mark the font as invalid if it matches any of the known collections that Identity is not a good fallback
Fixes pdf on KDE bug 171365
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 5d536b7..9cfa4f9 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -1392,7 +1392,7 @@ GfxCIDFont::GfxCIDFont(XRef *xref, char *tagA, Ref idA, GooString *nameA,
"Adobe-Korea1",
};
for (size_t i = 0; i < sizeof(knownCollections)/sizeof(knownCollections[0]); i++) {
- if (collection->cmp(knownCollections[i])) {
+ if (collection->cmp(knownCollections[i]) == 0) {
error(-1, "Missing language pack for '%s' mapping", collection->getCString());
delete collection;
goto err2;
More information about the poppler
mailing list