Ticket #2249: Fix Draw Action Cursor some more.patch

File Fix Draw Action Cursor some more.patch, 1.1 KB (added by xeen, 17 years ago)
  • org/openstreetmap/josm/actions/mapmode/DrawAction.java

     
    118118            // We invoke this to prevent strange things from happening
    119119            EventQueue.invokeLater(new Runnable() {
    120120                public void run() {
     121                    // Don't change cursor when mode has changed already
     122                    if(!(Main.map.mapMode instanceof DrawAction))
     123                        return;
    121124                    switch(c) {
    122125                        case way:
    123126                            Main.map.mapView.setCursor(cursorJoinWay);
     
    193196
    194197    @Override public void enterMode() {
    195198        super.enterMode();
     199        currCursor = Cursors.crosshair;
    196200        selectedColor = Main.pref.getColor(marktr("selected"), Color.red);
    197201        drawHelperLine = Main.pref.getBoolean("draw.helper-line", true);
    198202        drawTargetHighlight = Main.pref.getBoolean("draw.target-highlight", true);