summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-05 13:39:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-05 13:39:36 +0100
commit2e5e37309724a4b2a1e51f90c52bb0dad8ad3ac5 (patch)
tree6fb1c524941e50107789c8f38aca5926eb29182b /filter
parent7748fba40ae1b69fe34a7e7dd4056a53147ce607 (diff)
let move this back so scoping doesn't clobber us
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgwriter.cxx7
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