[librsvg: 5/43] marker: use the ..= syntax
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/43] marker: use the ..= syntax
- Date: Tue, 15 Oct 2019 00:05:54 +0000 (UTC)
commit 80b4c2916c2e0edfa5bfd78f3f0e0c4cc76a88c9
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:15:19 2019 +0200
marker: use the ..= syntax
rsvg_internals/src/marker.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/marker.rs b/rsvg_internals/src/marker.rs
index 54121013..26a784dd 100644
--- a/rsvg_internals/src/marker.rs
+++ b/rsvg_internals/src/marker.rs
@@ -527,7 +527,7 @@ impl Segments {
fn find_incoming_directionality_backwards(&self, start_index: usize) -> (bool, f64, f64) {
// "go backwards ... within the current subpath until ... segment which has directionality
// at its end point"
- for segment in self[..start_index + 1].iter().rev() {
+ for segment in self[..=start_index].iter().rev() {
match *segment {
Segment::Degenerate { .. } => {
return (false, 0.0, 0.0); // reached the beginning of the subpath as we ran into a
standalone point
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]