Unverified Commit e9f26a6a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

polyline_to_map: handle cases where from and to are in inverse order

parent a985b8cd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2410,6 +2410,9 @@ sub startup {
				  . ( $to_index - $from_index );
				$seen{$key} = 1;

				if ( $from_index > $to_index ) {
					( $to_index, $from_index ) = ( $from_index, $to_index );
				}
				@polyline = @polyline[ $from_index .. $to_index ];
				my @polyline_coords;
				for my $coord (@polyline) {