Changeset 4776 in josm for trunk/src


Ignore:
Timestamp:
2012-01-08T19:12:27+01:00 (8 years ago)
Author:
akks
Message:

fix #7233:"Backspace" does not work for closed ways

File:
1 edited

Legend:

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

    r4768 r4776  
    3535import javax.swing.JOptionPane;
    3636
     37import javax.swing.SwingUtilities;
    3738import org.openstreetmap.josm.Main;
    3839import org.openstreetmap.josm.command.AddCommand;
     
    158159        DataSet.removeSelectionListener(this);
    159160        Main.unregisterActionShortcut(backspaceShortcut);
     161        snapHelper.unsetFixedMode();
    160162
    161163        removeHighlighting();
     
    10641066    }
    10651067
    1066     public static class BackSpaceAction extends AbstractAction {
     1068    public class BackSpaceAction extends AbstractAction {
    10671069
    10681070        @Override
     
    10761078                    if (n==null) {
    10771079                        n=(Node) p; // found one node
     1080                        wayIsFinished=false;
    10781081                    }  else {
    10791082                    // if more than 1 node were affected by previous command,
     
    10861089            // select last added node - maybe we will continue drawing from it
    10871090            if (n!=null) getCurrentDataSet().addSelected(n);
    1088     }
    1089     }
     1091       }
     1092 }
    10901093
    10911094    private class SnapHelper {
Note: See TracChangeset for help on using the changeset viewer.