Changeset 35997 in osm for applications/editors
- Timestamp:
- 2022-07-05T21:36:58+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/DrawBuildingAction.java
r35978 r35997 17 17 import org.openstreetmap.josm.gui.layer.Layer; 18 18 import org.openstreetmap.josm.gui.layer.MapViewPaintable; 19 import org.openstreetmap.josm.gui.layer.OsmDataLayer;20 19 import org.openstreetmap.josm.gui.util.KeyPressReleaseListener; 21 20 import org.openstreetmap.josm.gui.util.ModifierExListener; … … 30 29 import java.awt.Color; 31 30 import java.awt.Cursor; 32 import java.awt.EventQueue;33 31 import java.awt.Graphics2D; 34 32 import java.awt.Point; … … 132 130 133 131 MapFrame map = MainApplication.getMap(); 134 if (getLayerManager().getEditDataSet() == null) {135 map.selectSelectTool(false);136 return;137 }138 132 selectedColor = new NamedColorProperty(marktr("selected"), selectedColor).get(); 139 133 map.mapView.addMouseListener(this); … … 440 434 @Override 441 435 public boolean layerIsSupported(Layer l) { 442 return l instanceof OsmDataLayer;436 return isEditableDataLayer(l); 443 437 } 444 438
Note:
See TracChangeset
for help on using the changeset viewer.