Changeset 3438 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2010-08-15T00:34:57+02:00 (14 years ago)
Author:
stoecker
Message:

fix some charset errors

Location:
trunk/src/org/openstreetmap/josm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r3380 r3438  
    678678        String s = get(key);
    679679        if (s != null && s.length() != 0)
    680             return s.indexOf("\u001e") >= 0 || s.indexOf("§§§") >= 0;
     680            return s.indexOf("\u001e") >= 0;
    681681            else
    682682                return def;
     
    700700        if(s != null && s.length() != 0)
    701701        {
    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             }
    716702            return Arrays.asList(s.split("\u001e"));
    717703        }
  • trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java

    r3412 r3438  
    1616
    1717    /**
    18      * the degrees/minutes/seconds format 9° 99" 99'
     18     * the degrees/minutes/seconds format 9 deg 99 min 99 sec
    1919     */
    2020    DEGREES_MINUTES_SECONDS (tr("deg\u00B0 min'' sec\"")),
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r3412 r3438  
    203203     * Returns this lat/lon pair in human-readable format.
    204204     *
    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"
    206206     */
    207207    public String toDisplayString() {
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r3406 r3438  
    628628    }
    629629    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");
    631631    }
    632632    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");
    634634    }
    635635    public void setDist(double dist) {
Note: See TracChangeset for help on using the changeset viewer.