Changeset 5106 in josm for trunk


Ignore:
Timestamp:
2012-03-19T11:58:45+01:00 (8 years ago)
Author:
xeen
Message:

fix parts of draw mode which broke in r5099 (fixes #7524)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r5104 r5106  
    191191        drawHelperLine = Main.pref.getBoolean("draw.helper-line", true);
    192192        drawTargetHighlight = Main.pref.getBoolean("draw.target-highlight", true);
    193         wayIsFinished = true;
     193
     194        // determine if selection is suitable to continue drawing. If it
     195        // isn't, set wayIsFinished to true to avoid superfluous repaints.
     196        determineCurrentBaseNodeAndPreviousNode(getCurrentDataSet().getSelected());
     197        wayIsFinished = currentBaseNode == null;
     198
    194199        snapHelper.init();
    195200        snapCheckboxMenuItem.getAction().setEnabled(true);
Note: See TracChangeset for help on using the changeset viewer.