Index: trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 7009)
+++ trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 7010)
@@ -17,4 +17,5 @@
 import java.util.Comparator;
 import java.util.HashSet;
+import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
@@ -545,4 +546,14 @@
                     if (selection != null) {
                         remember(selection);
+                        if (selection.size() == 2) {
+                            Iterator<? extends OsmPrimitive> it = selection.iterator();
+                            OsmPrimitive n1 = it.next(), n2=it.next();
+                            // show distance between two selected nodes
+                            if (n1 instanceof Node && n2 instanceof Node) {
+                                double d = ((Node) n1).getCoor().greatCircleDistance(((Node) n2).getCoor());
+                                Main.map.statusLine.setDist(d);
+                                return;
+                            }
+                        }
                         Main.map.statusLine.setDist(new SubclassFilteredCollection<OsmPrimitive, Way>(selection, OsmPrimitive.wayPredicate));
                     }
