diff options
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index dfe44003ab08..f6eb87a6b59e 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5134,11 +5134,26 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, SdrPowerPointImport& rMan, con PPTCharPropSet aCharPropSet( nCurrentPara ); if ( bTextPropAtom ) + { + if( nCharAnzRead == ( nStringLen - 1 ) && aString.GetChar( nCharAnzRead ) == '\r' ) + { + /* n#782833: Seems like the new line character at end of the para + * has two char properties and we would need to use the next one. + */ + PPTCharPropSet aDummyCharPropSet( nCurrentPara ); + ReadCharProps( rIn, aDummyCharPropSet, aString, nCharCount, nCharAnzRead, + bTextPropAtom, nExtParaPos, aStyleTextProp9, nExtParaFlags, + nBuBlip, nHasAnm, nAnmScheme ); + bEmptyParaPossible = true; + } ReadCharProps( rIn, aCharPropSet, aString, nCharCount, nCharAnzRead, bTextPropAtom, nExtParaPos, aStyleTextProp9, nExtParaFlags, nBuBlip, nHasAnm, nAnmScheme ); + } else + { nCharCount = nStringLen; + } sal_uInt32 nLen; while( nCharCount ) |