sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit b65f46127a9a1042edd4198f4a44820d7ea357a6 Author: Vort <[email protected]> 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 <[email protected]> Reviewed-by: Thorsten Behrens <[email protected]> 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()) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
