summaryrefslogtreecommitdiff
path: root/svx/source/core/graphichelper.cxx
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2014-03-05 15:06:17 -0700
committerJan Holesovsky <kendy@collabora.com>2014-03-07 19:37:54 +0100
commit156b5a15878394576dd008c5a07160721d333ab7 (patch)
tree9e8fefe0004be3369436f8610a044c52cff58511 /svx/source/core/graphichelper.cxx
parent09110b312145a86fb5b4279f102f6562383d0641 (diff)
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
Diffstat (limited to 'svx/source/core/graphichelper.cxx')
-rw-r--r--svx/source/core/graphichelper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index d9141215d3b4..4878872c3a84 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -84,6 +84,9 @@ void GraphicHelper::GetPreferredExtension( OUString& rExtension, const Graphic&
case GFX_LINK_TYPE_NATIVE_BMP:
aExtension = "bmp";
break;
+ case GFX_LINK_TYPE_NATIVE_SVG:
+ aExtension = "svg";
+ break;
default:
break;
}