summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc')
-rw-r--r--Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc b/Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc
index cf39bd88ab7..e0dda085c5d 100644
--- a/Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc
+++ b/Build/source/libs/poppler/poppler-src/poppler/TextOutputDev.cc
@@ -2607,10 +2607,14 @@ void TextPage::addChar(GfxState *state, double x, double y,
}
// break words at space character
- if (uLen == 1 && u[0] == (Unicode)0x20) {
+ if (uLen == 1 && UnicodeIsWhitespace(u[0])) {
charPos += nBytes;
endWord();
return;
+ } else if (uLen == 1 && u[0] == (Unicode)0x0) {
+ // ignore null characters
+ charPos += nBytes;
+ return;
}
state->getFontTransMat(&mat.m[0], &mat.m[1], &mat.m[2], &mat.m[3]);