[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - oox/source sw/qa
Michael Stahl
mstahl at redhat.com
Thu Jul 16 18:22:03 PDT 2015
oox/source/export/drawingml.cxx | 2 +-
sw/qa/extras/ooxmlexport/ooxmlexport5.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cdcf212ad77c822c9eb4970645a8697dd0ad6774
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Jul 16 22:30:34 2015 +0200
oox: fix invalid mime type "image/tif"
(regression from ccfc02f7691848284403d339ee17054169fbff1d)
Change-Id: I29a366228bf08f29edfa4a8e963889e34aa3d2ea
(cherry picked from commit f18ca153aac53408284062309db513ab73f7dd2c)
Reviewed-on: https://gerrit.libreoffice.org/17143
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 79a2c2d..edff9b9 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -842,7 +842,7 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic , bool bRelPathToMedia )
pExtension = ".png";
break;
case GFX_LINK_TYPE_NATIVE_TIF:
- sMediaType = "image/tif";
+ sMediaType = "image/tiff";
pExtension = ".tif";
break;
case GFX_LINK_TYPE_NATIVE_WMF:
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
index 4b1a79e..c1fd581 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
@@ -202,7 +202,7 @@ DECLARE_OOXMLEXPORT_TEST(testContentTypeTIF, "fdo77476.docx")
if (!pXmlDoc)
return;
- assertXPath(pXmlDoc, "/ContentType:Types/ContentType:Override[@ContentType='image/tif']", "PartName", "/word/media/image1.tif");
+ assertXPath(pXmlDoc, "/ContentType:Types/ContentType:Override[@ContentType='image/tiff']", "PartName", "/word/media/image1.tif");
}
DECLARE_OOXMLEXPORT_TEST(testFDO77117, "fdo77117.docx")
More information about the Libreoffice-commits
mailing list