Changeset 33900 in osm for applications/editors


Ignore:
Timestamp:
2017-11-25T01:51:10+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12840

Location:
applications/editors/josm/plugins/public_transport_layer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/public_transport_layer/build.xml

    r33527 r33900  
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="12663"/>
     5    <property name="plugin.main.version" value="12840"/>
    66
    77    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/public_transport_layer/src/ptl/DistanceBetweenStops.java

    r33527 r33900  
    7272        int lengthN = 0;
    7373        final boolean onlyLowerUnit = Main.pref.getBoolean("system_of_measurement.use_only_lower_unit", false);
    74         Main.pref.put("system_of_measurement.use_only_lower_unit", true);
     74        Main.pref.putBoolean("system_of_measurement.use_only_lower_unit", true);
    7575        try {
    7676            for (Node n : stopNodes) {
     
    102102            sb.insert(0, SystemOfMeasurement.getSystemOfMeasurement().getDistText(totalLength / lengthN, new DecimalFormat("0"), -1));
    103103        } finally {
    104             Main.pref.put("system_of_measurement.use_only_lower_unit", onlyLowerUnit);
     104            Main.pref.putBoolean("system_of_measurement.use_only_lower_unit", onlyLowerUnit);
    105105        }
    106106
Note: See TracChangeset for help on using the changeset viewer.