- Timestamp:
- 2016-01-02T23:09:57+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r9183 r9269 92 92 public class MapStatus extends JPanel implements Helpful, Destroyable, PreferenceChangedListener { 93 93 94 private static final DecimalFormat ONE_DECIMAL_PLACE = new DecimalFormat("0.0"); 94 private static final DecimalFormat ONE_DECIMAL_PLACE = new DecimalFormat( 95 Main.pref.get("statusbar.decimal-format", "0.0")); // change of preference requires restart 96 private static final double DISTANCE_THRESHOLD = Main.pref.getDouble("statusbar.distance-threshold", 0.01); 95 97 96 98 /** … … 999 1001 public void setDist(double dist) { 1000 1002 distValue = dist; 1001 distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, ONE_DECIMAL_PLACE, 0.01));1003 distText.setText(dist < 0 ? "--" : NavigatableComponent.getDistText(dist, ONE_DECIMAL_PLACE, DISTANCE_THRESHOLD)); 1002 1004 } 1003 1005
Note:
See TracChangeset
for help on using the changeset viewer.