Changeset 1750 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
- Timestamp:
- 2009-07-08T21:50:32+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r1725 r1750 240 240 */ 241 241 public void eventDispatched(AWTEvent event) { 242 if(Main.map == null || Main.map.mapView == null || !Main.map.mapView.isDrawable Layer())242 if(Main.map == null || Main.map.mapView == null || !Main.map.mapView.isActiveLayerDrawable()) 243 243 return; 244 244 updateKeyModifiers((InputEvent) event); … … 251 251 */ 252 252 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 253 if(!Main.map.mapView.isDrawable Layer())253 if(!Main.map.mapView.isActiveLayerDrawable()) 254 254 return; 255 255 computeHelperLine(); … … 288 288 if (e.getButton() != MouseEvent.BUTTON1) 289 289 return; 290 if(!Main.map.mapView.isDrawable Layer())290 if(!Main.map.mapView.isActiveLayerDrawable()) 291 291 return; 292 292 … … 576 576 577 577 @Override public void mouseMoved(MouseEvent e) { 578 if(!Main.map.mapView.isDrawable Layer())578 if(!Main.map.mapView.isActiveLayerDrawable()) 579 579 return; 580 580 … … 705 705 */ 706 706 @Override public void mouseExited(MouseEvent e) { 707 if(!Main.map.mapView.isDrawable Layer())707 if(!Main.map.mapView.isActiveLayerDrawable()) 708 708 return; 709 709 mousePos = e.getPoint();
Note:
See TracChangeset
for help on using the changeset viewer.
