From eb531134b4cffd8af747eb8a33cd6c3f743c607d Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Thu, 22 Oct 2015 16:11:45 +0200 Subject: [PATCH] forms: Find correct glyph or return 0 Function CharCodeToUnicode::mapToCharCode() could return wrong character code for given unicode character because of wrongly placed continue statement. --- poppler/CharCodeToUnicode.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/poppler/CharCodeToUnicode.cc b/poppler/CharCodeToUnicode.cc index 5576a4a..6d77158 100644 --- a/poppler/CharCodeToUnicode.cc +++ b/poppler/CharCodeToUnicode.cc @@ -648,17 +648,22 @@ int CharCodeToUnicode::mapToCharCode(Unicode* u, CharCode *c, int usize) { *c = 'x'; } else { int i, j; + GBool cont; //for each entry in the sMap for (i=0; i