You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/02/03 18:53:23 UTC
svn commit: r1240262 -
/incubator/ooo/trunk/main/filter/source/svg/svgwriter.cxx
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 ];
+ }
}
}
}