summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2018-03-19 22:19:38 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-20 07:48:05 +0100
commit79b2f1cb36ea4fec61b0620085313eb53fce9fa0 (patch)
tree648f1ac585128e7673c3e9d3f49a679b09c3c71e /xmloff
parent1083e405b6138867ea2d8ff74706237c0a68dc75 (diff)
tdf#115005 Do not remove original vector images from slides
During calculation of the quality index of the image, we should take into account also SVM vector image type. Its mime type is image/x-vclgraphic. Change-Id: I7c723e99995f73258bb59d976a6c7670c51f7a25 Reviewed-on: https://gerrit.libreoffice.org/51599 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlmultiimagehelper.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmloff/source/core/xmlmultiimagehelper.cxx b/xmloff/source/core/xmlmultiimagehelper.cxx
index 6acf7b30ed28..474e796c9ad8 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -58,6 +58,10 @@ namespace
}
// vector formats, prefer always
+ if (rMimeType == "image/x-vclgraphic") // MIMETYPE_VCLGRAPHIC
+ {
+ return 990;
+ }
if (rMimeType == "image/x-svm")
{
return 1000;