[librsvg] marker.rs: 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] marker.rs: Unconditionally push a viewbox, to make this easier to refactor
- Date: Fri, 1 Sep 2017 14:46:58 +0000 (UTC)
commit 5405a2fb96ea7a39cd17d78499279f11c1dfbd9d
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Aug 31 21:04:38 2017 -0500
marker.rs: Unconditionally push a viewbox, to make this easier to refactor
rust/src/marker.rs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 25ee6c2..b69fc8b 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -145,6 +145,8 @@ impl NodeMarker {
affine.scale (w / vbox.0.width, h / vbox.0.height);
drawing_ctx::push_view_box (draw_ctx, vbox.0.width, vbox.0.height);
+ } else {
+ drawing_ctx::push_view_box (draw_ctx, marker_width, marker_height);
}
affine.translate (-self.ref_x.get ().normalize (draw_ctx),
@@ -184,9 +186,7 @@ impl NodeMarker {
drawing_ctx::state_pop (draw_ctx);
- if let Some (_) = self.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]