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




commit de6a7762d82d3ac2e779afc8eeda091960781e35
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Oct 20 14:58:01 2022 -0500

    filters/blend.rs: use set_attribute()

 src/filters/blend.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/filters/blend.rs b/src/filters/blend.rs
index 3b6ac4370..96e962774 100644
--- a/src/filters/blend.rs
+++ b/src/filters/blend.rs
@@ -3,7 +3,7 @@ use markup5ever::{expanded_name, local_name, namespace_url, ns};
 
 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::{Parse, ParseValue};
@@ -67,7 +67,7 @@ impl SetAttributes for FeBlend {
 
         for (attr, value) in attrs.iter() {
             if let expanded_name!("", "mode") = attr.expanded() {
-                self.params.mode = attr.parse(value)?;
+                set_attribute(&mut self.params.mode, attr.parse(value), session);
             }
         }
 


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