Kaydet (Commit) 9ebc1ab1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

OUString::trim() does not modify in-place

Change-Id: I68227dcf77b9082708503d2c0d9bf829d78a442e
üst 5f82ec11
......@@ -1044,7 +1044,7 @@ XMLTextFrameContext_Impl::XMLTextFrameContext_Impl(
case XML_TOK_TEXT_FRAME_TRANSFORM:
{
OUString sValue( rValue );
sValue.trim();
sValue = sValue.trim();
const OUString aRotate(GetXMLToken(XML_ROTATE));
const sal_Int32 nRotateLen(aRotate.getLength());
sal_Int32 nLen = sValue.getLength();
......@@ -1054,7 +1054,7 @@ XMLTextFrameContext_Impl::XMLTextFrameContext_Impl(
')' == sValue[nLen-1] )
{
sValue = sValue.copy( nRotateLen+1, nLen-(nRotateLen+2) );
sValue.trim();
sValue = sValue.trim();
sal_Int32 nVal;
if (::sax::Converter::convertNumber( nVal, sValue ))
nRotation = (sal_Int16)(nVal % 360 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment