Skip to content

Commit

Permalink
Merge branch 'hotfix/fix-negative-elevation-display'
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Jun 17, 2021
2 parents 901dc63 + 9307e7a commit b62bb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.1.1
Correct display of negative current elevation in ruler.

## 0.1.0
Add terrain measurement feature.
- Use destination token elevation to automatically change ruler elevation.
Expand Down
2 changes: 1 addition & 1 deletion scripts/segments.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function segmentElevationLabel(segmentElevationIncrement, segmentCurrentElevatio
// const totalArrow = (totalElevationIncrement > 0) ? "↑" :
// (totalElevationIncrement < 0) ? "↓" :
// "";
label += ` [@${Math.abs(Math.round(segmentCurrentElevation * 100) / 100)} ${canvas.scene.data.gridUnits}]`;
label += ` [@${Math.round(segmentCurrentElevation * 100) / 100} ${canvas.scene.data.gridUnits}]`;
// }
return label;
}
Expand Down

0 comments on commit b62bb25

Please sign in to comment.