diff --git a/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java b/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
index be2f538..4f4885f 100644
|
a
|
b
|
public class ParallelWayAction extends MapMode implements AWTEventListener, MapV
|
| 131 | 131 | |
| 132 | 132 | @Override |
| 133 | 133 | public void enterMode() { |
| 134 | | // super.enterMode() updates the status line and cursor so we need our state to be set correctly |
| | 134 | if (!isEnabled()) |
| | 135 | return; |
| | 136 | // super.enterMode() updates the status line and cursor so we need our state to be set correctly early |
| 135 | 137 | setMode(Mode.normal); |
| 136 | 138 | pWays = null; |
| 137 | 139 | updateAllPreferences(); // All default values should've been set now |
| … |
… |
public class ParallelWayAction extends MapMode implements AWTEventListener, MapV
|
| 147 | 149 | Toolkit.getDefaultToolkit().addAWTEventListener(this, AWTEvent.KEY_EVENT_MASK); |
| 148 | 150 | } catch (SecurityException ex) { |
| 149 | 151 | } |
| | 152 | |
| 150 | 153 | sourceWays = new LinkedHashSet<Way>(getCurrentDataSet().getSelectedWays()); |
| 151 | 154 | for (Way w : sourceWays) { |
| 152 | 155 | w.setHighlighted(true); |
| … |
… |
public class ParallelWayAction extends MapMode implements AWTEventListener, MapV
|
| 214 | 217 | } |
| 215 | 218 | |
| 216 | 219 | @Override |
| | 220 | protected void updateEnabledState() { |
| | 221 | setEnabled(getEditLayer() != null); |
| | 222 | } |
| | 223 | |
| | 224 | @Override |
| 217 | 225 | public void eventDispatched(AWTEvent e) { |
| 218 | 226 | if (Main.map == null || mv == null || !mv.isActiveLayerDrawable()) |
| 219 | 227 | return; |