75a61b
From 22c8eb7e746827c694693895fc709a4ba7fdb957 Mon Sep 17 00:00:00 2001
75a61b
From: Marek Kasik <mkasik@redhat.com>
75a61b
Date: Thu, 22 Oct 2015 16:15:23 +0200
75a61b
Subject: [PATCH] forms: Fix showing of some non-ASCII characters
75a61b
75a61b
The &uChar is an array with just 1 member not 2.
75a61b
This fixes mapping of some Unicode characters to
75a61b
character codes.
75a61b
---
75a61b
 poppler/Annot.cc | 2 +-
75a61b
 1 file changed, 1 insertion(+), 1 deletion(-)
75a61b
75a61b
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
75a61b
index f3f479c..89bbc89 100644
75a61b
--- a/poppler/Annot.cc
75a61b
+++ b/poppler/Annot.cc
75a61b
@@ -4125,7 +4125,7 @@ void Annot::layoutText(GooString *text, GooString *outBuf, int *i,
75a61b
         // This assumes an identity CMap.
75a61b
         outBuf->append((uChar >> 8) & 0xff);
75a61b
         outBuf->append(uChar & 0xff);
75a61b
-      } else if (ccToUnicode->mapToCharCode(&uChar, &c, 2)) {
75a61b
+      } else if (ccToUnicode->mapToCharCode(&uChar, &c, 1)) {
75a61b
         ccToUnicode->decRefCnt();
75a61b
         if (font->isCIDFont()) {
75a61b
           // TODO: This assumes an identity CMap.  It should be extended to
75a61b
-- 
75a61b
2.4.3
75a61b