Commit eed25279 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Map: Fix position calculation between first and second station

derp!
parent 7789f820
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ sub estimate_train_positions {
			last;
		}
	}
	if ( $from_index and $to_index ) {
	if ( defined $from_index and defined $to_index ) {
		my $total_distance = 0;
		for my $j ( $from_index + 1 .. $to_index ) {
			my $prev = $features->[ $j - 1 ]{geometry}{coordinates};