Ticket #7524: probably_fix_7524.patch

File probably_fix_7524.patch, 932 bytes (added by xeen, 14 years ago)

Can you confirm this fixes the problem on your installation?

  • src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

     
    190190        selectedColor =PaintColors.SELECTED.get();
    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);
    196201