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>
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user