[Libreoffice-commits] core.git: sfx2/source
Andras Timar
andras.timar at collabora.com
Fri Nov 6 08:24:01 PST 2015
sfx2/source/dialog/mailmodel.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 77ff51623eab0c5908c84400c6eb8448ddb1e9c8
Author: Andras Timar <andras.timar at collabora.com>
Date: Fri Nov 6 08:22:33 2015 -0800
tdf#89852 on Windows do not decode the filename for email subject
... because MAPISendMail does not accept Unicode
Change-Id: Id48a41d1cf25d1a991b0f83fd5daa1a65896e958
diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx
index 8c9ae26..95ff121 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];
}
More information about the Libreoffice-commits
mailing list