[librsvg] rsvg_parse_style_attrs(): Stop if we find an error during parsing the transform attribute



commit 151536008450ad6ceec19e6bae1cb5b8396c4099
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed May 16 21:16:12 2018 -0500

    rsvg_parse_style_attrs(): Stop if we find an error during parsing the transform attribute

 librsvg/rsvg-styles.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/librsvg/rsvg-styles.c b/librsvg/rsvg-styles.c
index 00a51e34..c173dd3f 100644
--- a/librsvg/rsvg-styles.c
+++ b/librsvg/rsvg-styles.c
@@ -540,6 +540,7 @@ rsvg_parse_style_attrs (RsvgHandle *handle,
                 rsvg_node_set_attribute_parse_error (node,
                                                      "transform",
                                                      "Invalid transformation");
+                success = FALSE;
             }
             break;
 
@@ -549,9 +550,6 @@ rsvg_parse_style_attrs (RsvgHandle *handle,
     }
 
     rsvg_property_bag_iter_end (iter);
-
-    /* FIXME: propagate errors upstream */
-    /* return success; */
 }
 
 /* This is defined like this so that we can export the Rust function... just for


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