[librsvg: 16/27] Remove temporary variable
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 16/27] Remove temporary variable
- Date: Fri, 5 Mar 2021 23:36:27 +0000 (UTC)
commit d5aa9878b21c9db9fab6e0824e18fb00d4bf2d9a
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Mar 5 13:52:09 2021 -0600
Remove temporary variable
src/drawing_ctx.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index ec483479..cef9bc7a 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -1418,13 +1418,11 @@ impl DrawingCtx {
cr.rotate(-rotation);
}
- let current_color = values.color().0;
-
let res = if !clipping {
let paint_source = values
.fill()
.0
- .resolve(acquired_nodes, values.fill_opacity().0, current_color)?
+ .resolve(acquired_nodes, values.fill_opacity().0, values.color().0)?
.to_user_space(&bbox, saved_cr.draw_ctx, values);
saved_cr
@@ -1449,7 +1447,7 @@ impl DrawingCtx {
let paint_source = values
.stroke()
.0
- .resolve(acquired_nodes, values.stroke_opacity().0, current_color)?
+ .resolve(acquired_nodes, values.stroke_opacity().0, values.color().0)?
.to_user_space(&bbox, saved_cr.draw_ctx, values);
saved_cr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]