[Libreoffice-commits] .: xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 11:26:26 PST 2012


 xmloff/source/text/XMLTextFrameContext.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9ebc1ab13854f44af64b2d63717e631542d9374c
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Nov 28 21:26:01 2012 +0200

    OUString::trim() does not modify in-place
    
    Change-Id: I68227dcf77b9082708503d2c0d9bf829d78a442e

diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx
index f82811c..6e8fc2e 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 );


More information about the Libreoffice-commits mailing list