summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/fpdftext/cpdf_textpage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp
index 16214269ae..e712549ceb 100644
--- a/core/fpdftext/cpdf_textpage.cpp
+++ b/core/fpdftext/cpdf_textpage.cpp
@@ -181,7 +181,8 @@ void CPDF_TextPage::ParseTextPage() {
int indexSize = pdfium::CollectionSize<int>(m_CharIndex);
const PAGECHAR_INFO& charinfo = m_CharList[i];
if (charinfo.m_Flag == FPDFTEXT_CHAR_GENERATED ||
- (charinfo.m_Unicode != 0 && !IsControlChar(charinfo))) {
+ (charinfo.m_Unicode != 0 && !IsControlChar(charinfo)) ||
+ (charinfo.m_Unicode == 0 && charinfo.m_CharCode != 0)) {
if (indexSize % 2) {
m_CharIndex.push_back(1);
} else {