From 156b5a15878394576dd008c5a07160721d333ab7 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Wed, 5 Mar 2014 15:06:17 -0700 Subject: Do not convert SVGs to JPEGs when editing with external tool This patch adds support for opening SVGs in the user's default SVG viewer/editor. If the image cannot be exported to SVG directly, it is exported as PNG instead. In no case will an SVG or an unrecognized format be lossy-converted to JPEG. Change-Id: I46dc8548c3cfb4d24a4a0078d4e3d7eee8367b1c --- svx/source/xoutdev/_xoutbmp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/xoutdev') diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx index 1521c7a60563..bdf732aa5b4a 100644 --- a/svx/source/xoutdev/_xoutbmp.cxx +++ b/svx/source/xoutdev/_xoutbmp.cxx @@ -231,7 +231,7 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, OUString& rFileNam if( GRFILTER_FORMAT_NOTFOUND == nFilter ) { - nFilter = rFilter.GetExportFormatNumberForShortName( FORMAT_JPG ); + nFilter = rFilter.GetExportFormatNumberForShortName( FORMAT_PNG ); if( GRFILTER_FORMAT_NOTFOUND == nFilter ) nFilter = rFilter.GetExportFormatNumberForShortName( FORMAT_BMP ); -- cgit