[librsvg: 12/31] draw_shape: keep the Stroke around
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/31] draw_shape: keep the Stroke around
- Date: Thu, 3 Jun 2021 02:27:10 +0000 (UTC)
commit 7aace4d8f949cf83f921696eaa9733e523042c9c
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jun 2 16:58:04 2021 -0500
draw_shape: keep the Stroke around
src/drawing_ctx.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index f0fbd60e..f49a94ed 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -1225,13 +1225,13 @@ impl DrawingCtx {
cr.set_antialias(cairo::Antialias::from(values.shape_rendering()));
- {
+ let stroke = {
let view_params = dc.get_view_params();
let params = NormalizeParams::new(values, &view_params);
- let stroke = Stroke::new(values, ¶ms);
+ Stroke::new(values, ¶ms)
+ };
- setup_cr_for_stroke(&cr, &stroke);
- }
+ setup_cr_for_stroke(&cr, &stroke);
cr.set_fill_rule(cairo::FillRule::from(values.fill_rule()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]