Changeset 35705 in osm for applications
- Timestamp:
- 2021-02-08T10:03:07+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/org/openstreetmap/josm/plugins/commandline/CommandLine.java
r34656 r35705 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/"; … … 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); … … 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 }
Note:
See TracChangeset
for help on using the changeset viewer.