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