Changeset 5780 in josm for trunk


Ignore:
Timestamp:
2013-03-18T18:24:40+01:00 (7 years ago)
Author:
akks
Message:

Patch by Lesath: usage of "," in simplify-way.max-error
(all the numbers in "," in preferences are considered = 0)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JumpToAction.java

    r5670 r5780  
    114114                zoomLvl = Double.parseDouble(zm.getText());
    115115                ll = new LatLon(Double.parseDouble(lat.getText()), Double.parseDouble(lon.getText()));
    116             } catch (Exception ex) {
     116            } catch (NumberFormatException ex) {
    117117                JOptionPane.showMessageDialog(Main.parent, tr("Could not parse Latitude, Longitude or Zoom. Please check."), tr("Unable to parse Lon/Lat"), JOptionPane.ERROR_MESSAGE);
    118118            }
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r4982 r5780  
    150150     */
    151151    public SequenceCommand simplifyWay(Way w, DataSet ds) {
    152         double threshold = Double.parseDouble(Main.pref.get("simplify-way.max-error", "3"));
     152        double threshold = Main.pref.getDouble("simplify-way.max-error", "3");
    153153        int lower = 0;
    154154        int i = 0;
Note: See TracChangeset for help on using the changeset viewer.