diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-11-28 21:26:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-11-28 21:26:01 +0200 |
commit | 9ebc1ab13854f44af64b2d63717e631542d9374c (patch) | |
tree | e63eb6c699d3dc9cb16ec45764fd969417abaa62 /xmloff/source/text | |
parent | 5f82ec11789a201e38565f59ce7d598b3d17827f (diff) |
OUString::trim() does not modify in-place
Change-Id: I68227dcf77b9082708503d2c0d9bf829d78a442e
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLTextFrameContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index f82811c9dc82..6e8fc2e2eff7 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -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 ); |