svgio/inc/svgfecolormatrixnode.hxx              |    1 -
 svgio/qa/cppunit/data/filterFeColorMatrix.svg   |    1 -
 svgio/source/svgreader/svgfecolormatrixnode.cxx |    2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit b391d6e2934fb5f6417a4ac37d510816e0773942
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Jun 30 12:49:10 2023 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Jun 30 14:11:21 2023 +0200

    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 <xiscofa...@libreoffice.org>

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)
 {
 }
 

Reply via email to