[librsvg] NodeUse: Unconditionally push a viewbox, to make this easier to refactor
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] NodeUse: Unconditionally push a viewbox, to make this easier to refactor
- Date: Fri, 1 Sep 2017 14:46:48 +0000 (UTC)
commit 5cc00b78918bfb8dcd4b62f440d80a2148ee17d4
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Aug 31 20:39:48 2017 -0500
NodeUse: Unconditionally push a viewbox, to make this easier to refactor
rust/src/structure.rs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rust/src/structure.rs b/rust/src/structure.rs
index bd45720..1b16c83 100644
--- a/rust/src/structure.rs
+++ b/rust/src/structure.rs
@@ -397,6 +397,7 @@ impl NodeTrait for NodeUse {
drawing_ctx::set_current_state_affine (draw_ctx, affine);
drawing_ctx::push_discrete_layer (draw_ctx);
+ drawing_ctx::push_view_box (draw_ctx, nw, nh);
}
drawing_ctx::state_push (draw_ctx);
@@ -406,9 +407,7 @@ impl NodeTrait for NodeUse {
drawing_ctx::state_pop (draw_ctx);
drawing_ctx::pop_discrete_layer (draw_ctx);
- if let Some (_) = symbol.vbox.get () {
- drawing_ctx::pop_view_box (draw_ctx);
- }
+ drawing_ctx::pop_view_box (draw_ctx);
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]