summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2015-09-02 00:33:01 +0800
committerAndras Timar <andras.timar@collabora.com>2015-09-18 10:10:11 +0200
commit99cf09587848af6957272e7b06059f45e97eab4e (patch)
treede0ea628ee689bff5181cde71cc48597b76be3c0 /editeng/source
parentefae3613217f8e08c798a731189b42a9ff3dc588 (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 85c62a36a907bc5ff31627349a80baa51efbd443) Reviewed-on: https://gerrit.libreoffice.org/18296
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/impedit4.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 0c26682d49f4..ecc12147b25a 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++;
}