summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-06-30 12:49:10 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-30 14:11:21 +0200
commitb391d6e2934fb5f6417a4ac37d510816e0773942 (patch)
tree3d404de27c538f3c3c4e846c56273e8e593afa56 /svgio
parent32d8db9bb6d8d3e2dcfe3d3317505bca3cb870ca (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>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/inc/svgfecolormatrixnode.hxx1
-rw-r--r--svgio/qa/cppunit/data/filterFeColorMatrix.svg1
-rw-r--r--svgio/source/svgreader/svgfecolormatrixnode.cxx2
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 03dc5cf24c1e..0fed49ea6ca2 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)
{
}