[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - editeng/source
Mark Hung
marklh9 at gmail.com
Thu Sep 3 04:12:05 PDT 2015
editeng/source/editeng/impedit4.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9761e8b7eb2f4efedfff67a6574540d4ea2e9c5a
Author: Mark Hung <marklh9 at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
(cherry picked from commit 85c62a36a907bc5ff31627349a80baa51efbd443)
Reviewed-on: https://gerrit.libreoffice.org/18296
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 0c26682..ecc1214 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++;
}
More information about the Libreoffice-commits
mailing list