- Timestamp:
- 2014-04-27T13:28:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r7005 r7010 17 17 import java.util.Comparator; 18 18 import java.util.HashSet; 19 import java.util.Iterator; 19 20 import java.util.LinkedList; 20 21 import java.util.List; … … 545 546 if (selection != null) { 546 547 remember(selection); 548 if (selection.size() == 2) { 549 Iterator<? extends OsmPrimitive> it = selection.iterator(); 550 OsmPrimitive n1 = it.next(), n2=it.next(); 551 // show distance between two selected nodes 552 if (n1 instanceof Node && n2 instanceof Node) { 553 double d = ((Node) n1).getCoor().greatCircleDistance(((Node) n2).getCoor()); 554 Main.map.statusLine.setDist(d); 555 return; 556 } 557 } 547 558 Main.map.statusLine.setDist(new SubclassFilteredCollection<OsmPrimitive, Way>(selection, OsmPrimitive.wayPredicate)); 548 559 }
Note:
See TracChangeset
for help on using the changeset viewer.