[librsvg: 3/6] Handle child being in error in feMerge



commit c534dcf1ea6b0e212a8ec79189a539c230fd871a
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Tue Sep 25 11:37:48 2018 +0300

    Handle child being in error in feMerge

 rsvg_internals/src/filters/merge.rs | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/rsvg_internals/src/filters/merge.rs b/rsvg_internals/src/filters/merge.rs
index a2799d33..08668c7c 100644
--- a/rsvg_internals/src/filters/merge.rs
+++ b/rsvg_internals/src/filters/merge.rs
@@ -142,6 +142,10 @@ impl Filter for Merge {
             .children()
             .filter(|c| c.get_type() == NodeType::FilterPrimitiveMergeNode)
         {
+            if child.is_in_error() {
+                return Err(FilterError::ChildNodeInError);
+            }
+
             bounds = bounds.add_input(
                 &child
                     .with_impl(|c: &MergeNode| ctx.get_input(draw_ctx, c.in_.borrow().as_ref()))?,


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