[Libreoffice-commits] core.git: filter/source

Thorsten Behrens tbehrens at suse.com
Mon Apr 8 04:04:40 PDT 2013


 filter/source/svg/svgwriter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3c88993aeb262620b8e3bb3151e57f16260b51f3
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Mon Apr 8 13:02:18 2013 +0200

    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

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index c79b6cc..cbb33e3 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;


More information about the Libreoffice-commits mailing list