diff options
author | offtkp <parisoplop@gmail.com> | 2022-08-11 01:57:21 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-08-19 10:25:39 +0200 |
commit | ea75ae547eaf69f7b4063264fe4c811d044a5798 (patch) | |
tree | adaab0276e37af3da1d0e5a6c468c6be753b0ad6 /vcl/source/graphic/UnoGraphicDescriptor.cxx | |
parent | 735c6412deb4934e28ded552466be034a7b7b3fe (diff) |
Remove code duplication in GraphicDescriptor for SVG
GraphicFormatDetector and GraphicDescriptor have duplicate format
detection code so now GraphicDescriptor uses GraphicFormatDetector
functions instead to detect the format for SVG files
Change-Id: I5ababbd43ece4e8c08c5833895dc0b56ad467f77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138102
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/graphic/UnoGraphicDescriptor.cxx')
-rw-r--r-- | vcl/source/graphic/UnoGraphicDescriptor.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/graphic/UnoGraphicDescriptor.cxx b/vcl/source/graphic/UnoGraphicDescriptor.cxx index ca25e5c6d964..b9daeeab6b61 100644 --- a/vcl/source/graphic/UnoGraphicDescriptor.cxx +++ b/vcl/source/graphic/UnoGraphicDescriptor.cxx @@ -139,6 +139,7 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const OUString* pURL ) case GraphicFileFormat::EMF: pMimeType = MIMETYPE_EMF; cType = graphic::GraphicType::VECTOR; break; case GraphicFileFormat::EMZ: pMimeType = MIMETYPE_EMF; cType = graphic::GraphicType::VECTOR; break; case GraphicFileFormat::SVG: pMimeType = MIMETYPE_SVG; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::SVGZ: pMimeType = MIMETYPE_SVG; cType = graphic::GraphicType::VECTOR; break; default: break; |