let move this back so scoping doesn't clobber us

This commit is contained in:
Caolán McNamara 2011-09-05 13:39:36 +01:00
parent 7748fba40a
commit 2e5e373097

View file

@ -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