[librsvg/librsvg-2.46] marker: use the ..= syntax



commit c0492083fff5ceefc9d3c34983335adf30f966d0
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]