gipy: quickfix for heights position

master
frederic wagner 2023-09-21 18:36:53 +02:00
parent 7f91bceb5c
commit 539d687fd8
1 changed files with 7 additions and 6 deletions

View File

@ -1002,10 +1002,11 @@ class Status {
let current_position = 0;
if (this.current_segment !== null) {
current_position =
this.remaining_distances[this.current_segment + 1] +
this.remaining_distances[0] -
(this.remaining_distances[this.current_segment + 1] +
this.projected_point.distance(
this.path.point(this.current_segment + 1)
);
));
}
if (this.screen == HEIGHTS_FULL) {
this.display_heights(0, current_position, this.remaining_distances[0]);