[Libreoffice-commits] core.git: sdext/source
Vort
vvort at yandex.ru
Mon Jun 20 22:29:55 UTC 2016
sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit b65f46127a9a1042edd4198f4a44820d7ea357a6
Author: Vort <vvort at yandex.ru>
Date: Fri Jun 17 17:55:08 2016 +0300
tdf#96080 PDF Import: fix incorrect whitespace characters sequence
Change-Id: I0f8e0217cb661be318af611216191def1b209ea1
Reviewed-on: https://gerrit.libreoffice.org/26426
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index 4282999..5c09619 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())
More information about the Libreoffice-commits
mailing list