[librsvg/rustification] marker.rs: Use variables whose purpose is more clear
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] marker.rs: Use variables whose purpose is more clear
- Date: Tue, 25 Oct 2016 18:13:42 +0000 (UTC)
commit fcdac7669e18882f63cad611b4f86c728ba5a548
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 25 13:13:13 2016 -0500
marker.rs: Use variables whose purpose is more clear
rust/src/marker.rs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index c373733..9061105 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -78,8 +78,8 @@ fn path_to_segments (path: cairo::Path) -> Vec<Segment> {
let seg = Segment {
is_degenerate: true,
- p1x: x,
- p1y: y,
+ p1x: cur_x,
+ p1y: cur_y,
p2x: 0.0, p2y: 0.0, p3x: 0.0, p3y: 0.0, p4x: 0.0, p4y: 0.0 // these are set in the next
iteration
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]