Ticket #8511: SimplyfyWayParseErrorPatch.diff
| File SimplyfyWayParseErrorPatch.diff, 1.0 KB (added by , 13 years ago) |
|---|
-
SimplifyWayAction.java
1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 import static org.openstreetmap.josm.tools.I18n.trn; 4 import static org.openstreetmap.josm.gui.help.HelpUtil.*; 5 import static org.openstreetmap.josm.tools.I18n.*; 7 6 8 7 import java.awt.event.ActionEvent; 9 8 import java.awt.event.KeyEvent; … … 149 148 * @param w the way to simplify 150 149 */ 151 150 public SequenceCommand simplifyWay(Way w, DataSet ds) { 152 double threshold = Double.parseDouble(Main.pref.get("simplify-way.max-error", "3"));151 double threshold = Main.pref.getDouble("simplify-way.max-error", "3"); 153 152 int lower = 0; 154 153 int i = 0; 155 154 List<Node> newNodes = new ArrayList<Node>(w.getNodesCount());
