[librsvg: 4/6] Handle child being in error in feLighting
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/6] Handle child being in error in feLighting
- Date: Wed, 26 Sep 2018 00:04:20 +0000 (UTC)
commit 4e0119485ea0efc02c34a17db35d74c4a0d18207
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Tue Sep 25 11:40:04 2018 +0300
Handle child being in error in feLighting
rsvg_internals/src/filters/light/lighting.rs | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/rsvg_internals/src/filters/light/lighting.rs b/rsvg_internals/src/filters/light/lighting.rs
index 33ab1fd5..1e77f882 100644
--- a/rsvg_internals/src/filters/light/lighting.rs
+++ b/rsvg_internals/src/filters/light/lighting.rs
@@ -236,6 +236,10 @@ impl Filter for Lighting {
}
let light_source = light_source.unwrap();
+ if light_source.is_in_error() {
+ return Err(FilterError::ChildNodeInError);
+ }
+
let light_source = light_source.get_impl::<LightSource>().unwrap();
let light_source = light_source.transform(ctx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]