incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1240262 - /incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx
Date Fri, 03 Feb 2012 17:53:23 GMT
Author: alg
Date: Fri Feb  3 17:53:23 2012
New Revision: 1240262

URL: http://svn.apache.org/viewvc?rev=1240262&view=rev
Log:
#118796# corrected null-pointer usage in SVG text exporter

Modified:
    incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx

Modified: incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx?rev=1240262&r1=1240261&r2=1240262&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx Fri Feb  3 17:53:23 2012
@@ -894,7 +894,10 @@ void SVGActionWriter::ImplWriteText( con
                     }
 
                     if( bCont )
-                        nX = aPos.X() + pDXArray[ nCurPos - 1 ];
+                    {
+                        // #118796# do NOT access pDXArray, it may be zero (!)
+                        nX = aPos.X() + pDX[ nCurPos - 1 ];
+                    }
                 }
             }
         }



Mime
View raw message