75a61b
From 18016a2b647fa41d59a9926c59bc86ca859bba18 Mon Sep 17 00:00:00 2001
75a61b
From: Marek Kasik <mkasik@redhat.com>
75a61b
Date: Fri, 23 Oct 2015 10:15:47 +0200
75a61b
Subject: [PATCH] forms: Find correct glyph or return 0
75a61b
75a61b
Function CharCodeToUnicode::mapToCharCode() could return
75a61b
wrong character code for given unicode character because
75a61b
of wrongly placed continue statement.
75a61b
---
75a61b
 poppler/CharCodeToUnicode.cc | 2 +-
75a61b
 1 file changed, 1 insertion(+), 1 deletion(-)
75a61b
75a61b
diff --git a/poppler/CharCodeToUnicode.cc b/poppler/CharCodeToUnicode.cc
75a61b
index 5576a4a..91f6ff2 100644
75a61b
--- a/poppler/CharCodeToUnicode.cc
75a61b
+++ b/poppler/CharCodeToUnicode.cc
75a61b
@@ -656,7 +656,7 @@ int CharCodeToUnicode::mapToCharCode(Unicode* u, CharCode *c, int usize) {
75a61b
       //compare the string char by char
75a61b
       for (j=0; j
75a61b
         if (sMap[i].u[j] != u[j]) {
75a61b
-          continue;
75a61b
+          break;
75a61b
         }
75a61b
       }
75a61b
 
75a61b
-- 
75a61b
2.4.3
75a61b