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