Changeset 845 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
- Timestamp:
- 2008-08-22T21:25:28+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r804 r845 124 124 */ 125 125 public void eventDispatched(AWTEvent event) { 126 if(!Main.map.mapView.isDrawableLayer()) 127 return; 126 128 InputEvent e = (InputEvent) event; 127 129 ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; … … 134 136 */ 135 137 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 138 if(!Main.map.mapView.isDrawableLayer()) 139 return; 136 140 computeHelperLine(); 137 141 } … … 146 150 147 151 if (e.getButton() != MouseEvent.BUTTON1) 152 return; 153 if(!Main.map.mapView.isDrawableLayer()) 148 154 return; 149 155 … … 331 337 332 338 @Override public void mouseMoved(MouseEvent e) { 339 if(!Main.map.mapView.isDrawableLayer()) 340 return; 333 341 334 342 // we copy ctrl/alt/shift from the event just in case our global … … 441 449 */ 442 450 @Override public void mouseExited(MouseEvent e) { 451 if(!Main.map.mapView.isDrawableLayer()) 452 return; 443 453 mousePos = e.getPoint(); 444 454 Main.map.mapView.repaint();
Note:
See TracChangeset
for help on using the changeset viewer.
