[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - svx/source

Andras Timar andras.timar at collabora.com
Wed Mar 12 08:34:22 PDT 2014


 svx/source/xml/xmlgrhlp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cab3cac0d77651718051c88a068f8e3966dbb4e8
Author: Andras Timar <andras.timar at collabora.com>
Date:   Wed Mar 12 14:53:44 2014 +0100

    fdo#71622 compress svg files in ODF
    
    Change-Id: I7d3bcff12a8f24d4d63851f578f9703bfaa25278
    Reviewed-on: https://gerrit.libreoffice.org/8551
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index 95f5639..6972ef0 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -529,7 +529,7 @@ sal_Bool SvXMLGraphicHelper::ImplWriteGraphic( const OUString& rPictureStorageNa
                 xProps->setPropertyValue( "MediaType", aAny );
             }
 
-            const sal_Bool bCompressed = aMimeType.isEmpty() || aMimeType == "image/tiff";
+            const sal_Bool bCompressed = aMimeType.isEmpty() || aMimeType == "image/tiff" || aMimeType == "image/svg+xml";
             aAny <<= bCompressed;
             xProps->setPropertyValue( "Compressed", aAny );
 


More information about the Libreoffice-commits mailing list