Changeset 4487 in josm


Ignore:
Timestamp:
2011-10-03T22:52:38+02:00 (11 years ago)
Author:
bastiK
Message:

fixed #6848 - 'G' - ungluing building - creates unconnected node

File:
1 edited

Legend:

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

    r4458 r4487  
    1414import java.util.LinkedList;
    1515import java.util.List;
     16import java.util.Set;
    1617
    1718import javax.swing.JOptionPane;
     
    4546    private Node selectedNode;
    4647    private Way selectedWay;
    47     private ArrayList<Node> selectedNodes;
     48    private Set<Node> selectedNodes;
    4849
    4950    /**
     
    9495                return;
    9596            }
    96             ArrayList<Node> tmpNodes = new ArrayList<Node>();
     97            Set<Node> tmpNodes = new HashSet<Node>();
    9798            for (Node n : selectedNodes) {
    9899                int count = 0;
     
    261262            return false;
    262263
    263         selectedNodes = new ArrayList<Node>();
     264        selectedNodes = new HashSet<Node>();
    264265        for (OsmPrimitive p : selection) {
    265266            if (p instanceof Node) {
Note: See TracChangeset for help on using the changeset viewer.