summaryrefslogtreecommitdiff
path: root/sdext/source
diff options
context:
space:
mode:
authorVort <vvort@yandex.ru>2016-06-17 17:55:08 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2016-06-20 22:29:33 +0000
commitb65f46127a9a1042edd4198f4a44820d7ea357a6 (patch)
treeeec2977305cb0ea57bfd95bb0ade4200164ebc83 /sdext/source
parent78c7929ac4f03d90e956cc1052208c646feaabf3 (diff)
tdf#96080 PDF Import: fix incorrect whitespace characters sequence
Change-Id: I0f8e0217cb661be318af611216191def1b209ea1 Reviewed-on: https://gerrit.libreoffice.org/26426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sdext/source')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 4282999db6e0..5c096192cb9f 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -873,6 +873,13 @@ void PDFOutDev::drawChar(GfxState *state, double x, double y,
if( u == nullptr )
return;
+ // Fix for tdf#96080
+ if (uLen == 4 && u[0] == '\t' && u[1] == '\r' && u[2] == ' ' && u[3] == 0xA0)
+ {
+ u += 2;
+ uLen = 1;
+ }
+
double csdx = 0.0;
double csdy = 0.0;
if (state->getFont()->getWMode())