From 3c88993aeb262620b8e3bb3151e57f16260b51f3 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Mon, 8 Apr 2013 13:02:18 +0200 Subject: 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 --- filter/source/svg/svgwriter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filter') 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; -- cgit