diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-06-30 12:49:10 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-06-30 16:23:12 +0200 |
commit | 870ee9559fa761e8c32f67622c7c3b9796d5f300 (patch) | |
tree | 54b7125ba68098d7a18ed978c1ce71575cfc5362 /svgio | |
parent | 80007bf8b4d4d99b836687a772d235660219c2ff (diff) |
tdf#118087: set matrix as default value for type
From https://www.w3.org/TR/SVG11/filters.html#feColorMatrixElement
"If attribute ‘type’ is not specified, then the effect is as if a value
of matrix were specified."
Change-Id: I8ddaa9129661d9a9f51c474461cf788d8d524a1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153804
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 6f091fdf0730e1ed9bee4ba00b6bc2bd7914a80c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153769
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/inc/svgfecolormatrixnode.hxx | 1 | ||||
-rw-r--r-- | svgio/qa/cppunit/data/filterFeColorMatrix.svg | 1 | ||||
-rw-r--r-- | svgio/source/svgreader/svgfecolormatrixnode.cxx | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/svgio/inc/svgfecolormatrixnode.hxx b/svgio/inc/svgfecolormatrixnode.hxx index 78d8b027f653..975d9d082972 100644 --- a/svgio/inc/svgfecolormatrixnode.hxx +++ b/svgio/inc/svgfecolormatrixnode.hxx @@ -27,7 +27,6 @@ namespace svgio::svgreader { enum class ColorType { - None, HueRotate, Matrix, Saturate, diff --git a/svgio/qa/cppunit/data/filterFeColorMatrix.svg b/svgio/qa/cppunit/data/filterFeColorMatrix.svg index 07d5559ed1b6..a86c2debc2b0 100644 --- a/svgio/qa/cppunit/data/filterFeColorMatrix.svg +++ b/svgio/qa/cppunit/data/filterFeColorMatrix.svg @@ -18,7 +18,6 @@ <filter id="colorMeGreen"> <feColorMatrix in="SourceGraphic" - type="matrix" values="0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 diff --git a/svgio/source/svgreader/svgfecolormatrixnode.cxx b/svgio/source/svgreader/svgfecolormatrixnode.cxx index 5f8e03c4318b..a36b664da86b 100644 --- a/svgio/source/svgreader/svgfecolormatrixnode.cxx +++ b/svgio/source/svgreader/svgfecolormatrixnode.cxx @@ -25,7 +25,7 @@ namespace svgio::svgreader { SvgFeColorMatrixNode::SvgFeColorMatrixNode(SvgDocument& rDocument, SvgNode* pParent) : SvgNode(SVGToken::FeColorMatrix, rDocument, pParent) - , maType(ColorType::None) + , maType(ColorType::Matrix) { } |