Index: SimplifyWayAction.java
===================================================================
--- SimplifyWayAction.java	(revision 5778)
+++ SimplifyWayAction.java	(working copy)
@@ -1,9 +1,8 @@
 // License: GPL. Copyright 2007 by Immanuel Scholz and others
 package org.openstreetmap.josm.actions;
 
-import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
-import static org.openstreetmap.josm.tools.I18n.tr;
-import static org.openstreetmap.josm.tools.I18n.trn;
+import static org.openstreetmap.josm.gui.help.HelpUtil.*;
+import static org.openstreetmap.josm.tools.I18n.*;
 
 import java.awt.event.ActionEvent;
 import java.awt.event.KeyEvent;
@@ -149,7 +148,7 @@
      * @param w the way to simplify
      */
     public SequenceCommand simplifyWay(Way w, DataSet ds) {
-        double threshold = Double.parseDouble(Main.pref.get("simplify-way.max-error", "3"));
+        double threshold = Main.pref.getDouble("simplify-way.max-error", "3");
         int lower = 0;
         int i = 0;
         List<Node> newNodes = new ArrayList<Node>(w.getNodesCount());
