editeng/source/editeng/impedit4.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 85c62a36a907bc5ff31627349a80baa51efbd443
Author: Mark Hung <mark...@gmail.com>
Date:   Wed Sep 2 00:33:01 2015 +0800

    Fix tdf#93781 Impress copy wrong style name to clipboard when
    
    style name contains Chinese character.
    
    Encode style name in multibyte sring (ex,Chinese) properly with
    RTFOutFuncs::Out_String().
    
    Change-Id: Ibdd1010e28c711d7829643b60b32637ebce58bdb
    Reviewed-on: https://gerrit.libreoffice.org/18247
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/editeng/source/editeng/impedit4.cxx 
b/editeng/source/editeng/impedit4.cxx
index fcc47af..ba50da1 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -515,7 +515,8 @@ sal_uInt32 ImpEditEngine::WriteRTF( SvStream& rOutput, 
EditSelection aSel )
                 rOutput.WriteUInt32AsString( nNumber );
 
                 // Name of the template ...
-                rOutput.WriteCharPtr( " " ).WriteCharPtr( 
OUStringToOString(pStyle->GetName(), eDestEnc).getStr() );
+                rOutput.WriteCharPtr( " " );
+                RTFOutFuncs::Out_String( rOutput, pStyle->GetName(), eDestEnc 
);
                 rOutput.WriteCharPtr( ";}" );
                 nStyle++;
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to