Ticket #19936: 19936.patch
| File 19936.patch, 1.5 KB (added by , 5 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/commandline/CommandLine.java
74 74 protected String commandSymbol; 75 75 protected History history; 76 76 protected MapFrame currentMapFrame; 77 protected MapMode previousMode;78 77 79 78 static final String pluginDir = Preferences.main().getPluginsDirectory().getAbsolutePath() + "/CommandLine/"; 80 79 … … 112 111 currentCommand = command; 113 112 currentCommand.resetLoading(); 114 113 parseSelection(ds.getSelected()); 115 if (!(map.mapMode instanceof AnyAction116 || map.mapMode instanceof DummyAction117 || map.mapMode instanceof LengthAction118 || map.mapMode instanceof NodeAction119 || map.mapMode instanceof PointAction120 || map.mapMode instanceof RelationAction121 || map.mapMode instanceof WayAction)) {122 previousMode = map.mapMode;123 }124 114 if (currentCommand.currentParameterNum < currentCommand.parameters.size()) 125 115 setMode(Mode.SELECTION); 126 116 else … … 330 320 331 321 public void endInput() { 332 322 setMode(Mode.IDLE); 333 MainApplication.getMap().selectMapMode( previousMode);323 MainApplication.getMap().selectMapMode(null); 334 324 MainApplication.getMap().mapView.repaint(); 335 325 } 336 326
