Changeset 2986 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
- Timestamp:
- 2010-02-14T19:05:36+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r2985 r2986 348 348 if(currentMode.equals(c) || (!drawTargetCursor && currentMode.equals(DeleteMode.none))) 349 349 return; 350 try { 351 // We invoke this to prevent strange things from happening 352 EventQueue.invokeLater(new Runnable() { 353 public void run() { 354 // Don't change cursor when mode has changed already 355 if(!(Main.map.mapMode instanceof DeleteAction)) 356 return; 357 358 Main.map.mapView.setCursor(c.cursor()); 359 //System.out.println("Set cursor to: " + c.name()); 360 } 361 }); 362 currentMode = c; 363 } catch(Exception e) {} 350 // We invoke this to prevent strange things from happening 351 EventQueue.invokeLater(new Runnable() { 352 public void run() { 353 // Don't change cursor when mode has changed already 354 if(!(Main.map.mapMode instanceof DeleteAction)) 355 return; 356 357 Main.map.mapView.setCursor(c.cursor()); 358 //System.out.println("Set cursor to: " + c.name()); 359 } 360 }); 361 currentMode = c; 364 362 } 365 363
Note:
See TracChangeset
for help on using the changeset viewer.