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-21 08:45:28 +0100
commit070f3db51da48c70cde12050c18fb03de2192c0f (patch)
tree49a7685e42c2f5266ae83260ebb0ebf6d7b48a86 /xmloff
parent88e22b92bce612f349f8aa38adf69a8806361da3 (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. Reviewed-on: https://gerrit.libreoffice.org/51599 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Conflicts: sd/qa/unit/export-tests-ooxml2.cxx xmloff/source/core/xmlmultiimagehelper.cxx Change-Id: I7c723e99995f73258bb59d976a6c7670c51f7a25 Reviewed-on: https://gerrit.libreoffice.org/51655 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 3d7725a3b24f..c0e437c1f370 100644
--- a/xmloff/source/core/xmlmultiimagehelper.cxx
+++ b/xmloff/source/core/xmlmultiimagehelper.cxx
@@ -64,6 +64,10 @@ namespace
}
// vector formats, prefer always
+ if(sMimeType == "image/x-vclgraphic") // MIMETYPE_VCLGRAPHIC
+ {
+ return 990;
+ }
if(sMimeType == "image/x-svm")
{
return 1000;