[Libreoffice-commits] .: filter/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Sep 5 05:43:02 PDT 2011


 filter/source/svg/svgwriter.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 2e5e37309724a4b2a1e51f90c52bb0dad8ad3ac5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Sep 5 13:39:36 2011 +0100

    let move this back so scoping doesn't clobber us

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 7910f0a..1d04bbc 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


More information about the Libreoffice-commits mailing list