Changeset 6355 in josm for trunk/src/org
- Timestamp:
- 2013-11-02T16:52:15+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r6336 r6355 20 20 import java.util.ArrayList; 21 21 import java.util.Collection; 22 import java.util.Iterator;23 22 import java.util.LinkedList; 24 23 import java.util.List; … … 445 444 // Deleting the highlighted node 446 445 447 //check to see if node has interesting keys448 Iterator<String> keyIterator = candidateNode.getKeys().keySet().iterator();449 boolean hasTags = false;450 while (keyIterator.hasNext()) {451 String key = keyIterator.next();452 if (!OsmPrimitive.isUninterestingKey(key)) {453 hasTags = true;454 break;455 }456 }457 458 446 //check to see if node is in use by more than one object 459 447 List<OsmPrimitive> referrers = candidateNode.getReferrers(); … … 463 451 tr("Cannot delete node that is referenced by multiple objects"), 464 452 tr("Error"), JOptionPane.ERROR_MESSAGE); 465 } else if ( hasTags) {453 } else if (candidateNode.isTagged()) { 466 454 JOptionPane.showMessageDialog(Main.parent, 467 455 tr("Cannot delete node that has tags"),
Note:
See TracChangeset
for help on using the changeset viewer.