fdo#62682 bandaid fix for hyperlink export crash

Fixes the crash, but the deeper problem is that client code gets
confused about portion count, does not expect field to span more
than one line.

Change-Id: I237f3bbd16265597ee0639e77dd561d6c7f2cec8
This commit is contained in:
Thorsten Behrens
2013-04-08 13:02:18 +02:00
parent fbb1f9776b
commit 3c88993aeb

View File

@@ -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;