#12275 closed enhancement (fixed)
[patch] Option for two decimal places in status line
Reported by: | Adrian | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.01 |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
Sometimes I find it useful to have two decimal places for the heading, the angle and the length in the status line. To obtain this, I have been building custom versions of JOSM, with the attached diff applied to src/org/openstreetmap/josm/gui/MapStatus.java This gives two decimal places all the time. I propose an enhancement where there would be a preference in expert mode, allowing to choose one decimal place or two decimal places (default: one). But I do not have the programming skill to code this.
Attachments (1)
Change History (14)
by , 9 years ago
comment:1 by , 9 years ago
Summary: | Option for two decimal places in status line → [patch] Option for two decimal places in status line |
---|
comment:2 by , 9 years ago
Milestone: | → 16.01 |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-up: 6 comment:4 by , 9 years ago
Thank you.
I have built r9269 and there are some problems.
- It hangs at 100% CPU when attempting to open a large file.
- The preferences dialog does not give a warning that JOSM must be restarted for some of the preference changes to take effect.
- The angle fields in the status bar are too narrow to display the second decimal place when the angle is greater than 100 degrees. This was the reason for the second and third changes in my diff.
comment:6 by , 9 years ago
Replying to ar2988-os@…:
I have built r9269 and there are some problems.
- It hangs at 100% CPU when attempting to open a large file.
This should be unrelated to these changes. Try obtaining another build (e.g., from jenkins) and create a separate ticket if the problem persists.
- The preferences dialog does not give a warning that JOSM must be restarted for some of the preference changes to take effect.
We do not provide any comfort for such hidden and super-expert options, sorry.
- The angle fields in the status bar are too narrow to display the second decimal place when the angle is greater than 100 degrees. This was the reason for the second and third changes in my diff.
I overlooked that (in the unusual, un-highlighted diff format). Addressed in r9272.
comment:9 by , 9 years ago
The displayed values range from 0 to 360. And since 6 chars before my modification were just fine for 360.0 °
(7 chars), I adapted to this magic calculation. :)
follow-up: 11 comment:10 by , 9 years ago
This feature does not work for me. What should statusbar.decimal-format
and statusbar.distance-threshold
be to see two decimal places?
follow-up: 12 comment:11 by , 9 years ago
Replying to Klumbumbus:
This feature does not work for me. What should
statusbar.decimal-format
andstatusbar.distance-threshold
be to see two decimal places?
Set statusbar.decimal-format
to 0.00
and restart JOSM. statusbar.distance-threshold
determines when to display --
instead of the distance.
In 9269/josm: