fix(draw): show a 999.6 m line as 1.0 km, not 1000 m

formatMeasure checked the raw length against 1000 but printed it rounded, so a drawn line of 999.5 m or more read "1000 m" in the hint. Compare the rounded metres so it moves to kilometres.
This commit is contained in:
Rudy Celekli committed 2026-10-25 12:32:10 -04:00
1 parent 5b6c52437e
commit 99429904d4
3 files changed
+22 -3

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
- Show a drawn line of 999.5 m or more as 1.0 km. The draw hint kept metres
below 1000, then rounded 999.6 m up to "1000 m"
(Rudy Celekli, @rudycelekli, #1388).