- Timestamp:
- 2010-08-15T00:34:57+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r3380 r3438 678 678 String s = get(key); 679 679 if (s != null && s.length() != 0) 680 return s.indexOf("\u001e") >= 0 || s.indexOf("§§§") >= 0;680 return s.indexOf("\u001e") >= 0; 681 681 else 682 682 return def; … … 700 700 if(s != null && s.length() != 0) 701 701 { 702 if(s.indexOf("\u001e") < 0) /* FIXME: legacy code, remove later */703 {704 String r =s;705 if(r.indexOf("§§§") > 0) {706 r = r.replaceAll("§§§","\u001e");707 } else {708 r = r.replace(';','\u001e');709 }710 if(!r.equals(s)) /* save the converted string */711 {712 put(key,r);713 s = r;714 }715 }716 702 return Arrays.asList(s.split("\u001e")); 717 703 } -
trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java
r3412 r3438 16 16 17 17 /** 18 * the degrees/minutes/seconds format 9 ° 99" 99'18 * the degrees/minutes/seconds format 9 deg 99 min 99 sec 19 19 */ 20 20 DEGREES_MINUTES_SECONDS (tr("deg\u00B0 min'' sec\"")), -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r3412 r3438 203 203 * Returns this lat/lon pair in human-readable format. 204 204 * 205 * @return String in the format "lat=1.23456 °, lon=2.34567°"205 * @return String in the format "lat=1.23456 deg, lon=2.34567 deg" 206 206 */ 207 207 public String toDisplayString() { -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r3406 r3438 628 628 } 629 629 public void setAngle(double a) { 630 angleText.setText(a < 0 ? "--" : Math.round(a*10)/10.0 + " °");630 angleText.setText(a < 0 ? "--" : Math.round(a*10)/10.0 + " \u00B0"); 631 631 } 632 632 public void setHeading(double h) { 633 headingText.setText(h < 0 ? "--" : Math.round(h*10)/10.0 + " °");633 headingText.setText(h < 0 ? "--" : Math.round(h*10)/10.0 + " \u00B0"); 634 634 } 635 635 public void setDist(double dist) {
Note:
See TracChangeset
for help on using the changeset viewer.