[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - oox/source sw/qa

Michael Stahl mstahl at redhat.com
Thu Jul 16 18:21:24 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 927c320c2e8b5c8670e94f989b9fc09a5aa73437
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/17144
    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 9d4d84d..c06d5e5 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -849,7 +849,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 dd3a11f..50545cc 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
@@ -209,7 +209,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