[librsvg/attribute-parsers-737: 14/26] filters/color_matrix.rs: use set_attribute()




commit ed0fbb070e764dfe3fc321f615c2ccd7d9ba3c10
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Oct 20 16:55:30 2022 -0500

    filters/color_matrix.rs: use set_attribute()

 src/filters/color_matrix.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/filters/color_matrix.rs b/src/filters/color_matrix.rs
index d19d7743c..8b4f469b9 100644
--- a/src/filters/color_matrix.rs
+++ b/src/filters/color_matrix.rs
@@ -4,7 +4,7 @@ use nalgebra::{Matrix3, Matrix4x5, Matrix5, Vector5};
 
 use crate::document::AcquiredNodes;
 use crate::drawing_ctx::DrawingCtx;
-use crate::element::{ElementResult, SetAttributes};
+use crate::element::{set_attribute, ElementResult, SetAttributes};
 use crate::error::*;
 use crate::node::{CascadedValues, Node};
 use crate::parsers::{NumberList, Parse, ParseValue};
@@ -73,7 +73,7 @@ impl SetAttributes for FeColorMatrix {
             .iter()
             .filter(|(attr, _)| attr.expanded() == expanded_name!("", "type"))
         {
-            operation_type = attr.parse(value)?;
+            set_attribute(&mut operation_type, attr.parse(value), session);
         }
 
         // Now read the matrix correspondingly.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]