[librsvg] Node::draw(): Don't draw nodes that are in error
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Node::draw(): Don't draw nodes that are in error
- Date: Thu, 16 Mar 2017 05:15:45 +0000 (UTC)
commit 673b0f5b6390f25a9c6cd8cf572c93f13995abf5
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Mar 3 10:47:52 2017 -0600
Node::draw(): Don't draw nodes that are in error
rust/src/node.rs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/rust/src/node.rs b/rust/src/node.rs
index 31e6610..c577574 100644
--- a/rust/src/node.rs
+++ b/rust/src/node.rs
@@ -197,7 +197,9 @@ impl Node {
}
pub fn draw (&self, node: &RsvgNode, draw_ctx: *const RsvgDrawingCtx, dominate: i32) {
- self.node_impl.draw (node, draw_ctx, dominate);
+ if self.result.borrow ().is_ok () {
+ self.node_impl.draw (node, draw_ctx, dominate);
+ }
}
pub fn get_c_impl (&self) -> *const RsvgCNodeImpl {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]