diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index c79b6ccd096c..cbb33e358307 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -1650,7 +1650,7 @@ void SVGTextWriter::writeTextPortion( const Point& rPos, sal_Int32 nStartPos; while( bNotSync ) { - if( mnLeftTextPortionLength <= 0 ) + if( mnLeftTextPortionLength <= 0 || !mrCurrentTextPortion.is() ) { if( !nextTextPortion() ) break;