diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-05 13:39:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-05 13:39:36 +0100 |
commit | 2e5e37309724a4b2a1e51f90c52bb0dad8ad3ac5 (patch) | |
tree | 6fb1c524941e50107789c8f38aca5926eb29182b /filter | |
parent | Reverted WW8TableNodeInfo::toString() for dbglevel>1 (diff) | |
download | core-2e5e37309724a4b2a1e51f90c52bb0dad8ad3ac5.tar.gz core-2e5e37309724a4b2a1e51f90c52bb0dad8ad3ac5.zip |
let move this back so scoping doesn't clobber us
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 7910f0ab0304..1d04bbcfb7c9 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -1118,6 +1118,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText, { sal_Int32 nLen = rText.Len(); Size aNormSize; + boost::shared_array<sal_Int32> xTmpArray; sal_Int32* pDX; Point aPos; Point aBaseLinePos( rPos ); @@ -1142,9 +1143,9 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText, } else { - boost::shared_array<sal_Int32> apTmpArray(new sal_Int32[ nLen ]); - aNormSize = Size( mpVDev->GetTextArray( rText, apTmpArray.get() ), 0 ); - pDX = apTmpArray.get(); + xTmpArray.reset(new sal_Int32[ nLen ]); + aNormSize = Size( mpVDev->GetTextArray( rText, xTmpArray.get() ), 0 ); + pDX = xTmpArray.get(); } // if text is rotated, set transform matrix at new g element |