diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-11-06 08:22:33 -0800 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-11-06 08:24:48 -0800 |
commit | 77ff51623eab0c5908c84400c6eb8448ddb1e9c8 (patch) | |
tree | de7093182694ae21dd797193f1a0390e8088a5ac | |
parent | 5f68759810496ff3fadf5a883203449772c7392f (diff) |
tdf#89852 on Windows do not decode the filename for email subject
... because MAPISendMail does not accept Unicode
Change-Id: Id48a41d1cf25d1a991b0f83fd5daa1a65896e958
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 8c9ae268693b..95ff121dbfd3 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -821,7 +821,11 @@ SfxMailModel::SendMailResult SfxMailModel::Send( const css::uno::Reference< css: OUString subject( url.getBase( INetURLObject::LAST_SEGMENT, false, +#ifdef WNT + INetURLObject::NO_DECODE)); // MAPISendMail does not accept Unicode +#else INetURLObject::DECODE_WITH_CHARSET)); +#endif if (subject.isEmpty()) { subject = maAttachedDocuments[0]; } |