Kaydet (Commit) 30541352 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix string out-of-bounds assert on rhbz496762-1.pdf

Change-Id: I224e3c9befd1a9ab3ba0cc2676cd6b4ba51214c8
üst d01ee7e2
...@@ -374,7 +374,10 @@ void Parser::readChar() ...@@ -374,7 +374,10 @@ void Parser::readChar()
readDouble(aUnoMatrix.m11); readDouble(aUnoMatrix.m11);
readDouble(fontSize); 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 // chars gobble up rest of line
m_nCharIndex = -1; m_nCharIndex = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment