[Libreoffice-commits] core.git: svx/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 19 13:38:06 UTC 2019


 svx/source/items/rotmodit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 766cdd869d7d983e9e171a3eae0629cb9a0206ff
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Oct 19 13:43:27 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Oct 19 15:37:16 2019 +0200

    This code wants to add the numeric SvxRotateMode value
    
    Things started to go wrong when a2296128ccc1c678f0a8a591c36b5546683f482d "Some
    removal/replacement of the String/UniString with OUString" replaced
    
      UniString::CreateFromInt32( GetValue() )
    
    with
    
      OUString::valueOf( GetValue() )
    
    and then 64b993e046f23baaacaff1572b7d2a816588b5ef "finish deprecation of
    O(U)String::valueOf()" replaced that with
    
      OUString( GetValue() )
    
    Change-Id: Ib35bfbda3b177432b98c7e7c8a998666b125bbd4
    Reviewed-on: https://gerrit.libreoffice.org/81130
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/svx/source/items/rotmodit.cxx b/svx/source/items/rotmodit.cxx
index 8ae88d21cf66..8b378cdf5cc9 100644
--- a/svx/source/items/rotmodit.cxx
+++ b/svx/source/items/rotmodit.cxx
@@ -70,7 +70,7 @@ bool SvxRotateModeItem::GetPresentation(
             [[fallthrough]]; // break; // FALL THROUGH!!!
 
         case SfxItemPresentation::Nameless:
-            rText += OUStringChar( GetValue() );
+            rText += OUString::number( GetValue() );
             return true;
             break;
         default: ;//prevent warning


More information about the Libreoffice-commits mailing list