Only write mime-type attribute if ODF version > 1.2
Change-Id: I88ae821e969a2c45161f59eb2e667f645f1afdac Reviewed-on: https://gerrit.libreoffice.org/54075 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
@@ -2459,7 +2459,7 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
|
|||||||
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD );
|
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_ACTUATE, XML_ONLOAD );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!aMimeType.isEmpty())
|
if (!aMimeType.isEmpty() && GetExport().getDefaultVersion() > SvtSaveOptions::ODFVER_012)
|
||||||
mrExport.AddAttribute(XML_NAMESPACE_LO_EXT, "mime-type", aMimeType);
|
mrExport.AddAttribute(XML_NAMESPACE_LO_EXT, "mime-type", aMimeType);
|
||||||
|
|
||||||
SvXMLElementExport aElement(mrExport, XML_NAMESPACE_DRAW, XML_IMAGE, true, true);
|
SvXMLElementExport aElement(mrExport, XML_NAMESPACE_DRAW, XML_IMAGE, true, true);
|
||||||
|
Reference in New Issue
Block a user