Kaydet (Commit) 85c62a36 authored tarafından Mark Hung's avatar Mark Hung Kaydeden (comit) Caolán McNamara

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/18247Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst db9f846a
......@@ -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++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment