summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 16:33:39 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-17 17:54:28 +0100
commit1b4b828fddbb8cd9a1314e8e54641740629b206c (patch)
tree1cf9958f34689e8a2f7fa23cb9dc08b7d5dff40b /sd/source
parent426f91e9aec7650b25996a91862a99367cd7d49a (diff)
Avoid string comparison if result is known
Change-Id: I766c343194f81497f95108d1259b697d3ad363a5 Reviewed-on: https://gerrit.libreoffice.org/67642 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/viewshel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 09af5e774e4a..9163d2142dd2 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -541,7 +541,7 @@ OString ViewShell::GetTextSelection(const OString& _aMimeType, OString& rUsedMim
datatransfer::DataFlavor aFlavor;
aFlavor.MimeType = OUString::fromUtf8(aMimeType.getStr());
- if (aMimeType == "text/plain;charset=utf-16")
+ if (bConvert || aMimeType == "text/plain;charset=utf-16")
aFlavor.DataType = cppu::UnoType<OUString>::get();
else
aFlavor.DataType = cppu::UnoType< uno::Sequence<sal_Int8> >::get();