diff options
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index 7cdb775b256b..eedffe48ba03 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -374,7 +374,10 @@ void Parser::readChar() readDouble(aUnoMatrix.m11); readDouble(fontSize); - OString aChars = lcl_unescapeLineFeeds( m_aLine.copy( m_nCharIndex ) ); + OString aChars; + + if (m_nCharIndex != -1) + aChars = lcl_unescapeLineFeeds( m_aLine.copy( m_nCharIndex ) ); // chars gobble up rest of line m_nCharIndex = -1; |