Index: /trunk/src/org/openstreetmap/josm/actions/DistributeAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/DistributeAction.java	(revision 11186)
+++ /trunk/src/org/openstreetmap/josm/actions/DistributeAction.java	(revision 11187)
@@ -211,5 +211,5 @@
         // Find from the selected nodes two that are the furthest apart.
         // Let's call them A and B.
-        double distance = 0;
+        double distance = Double.NEGATIVE_INFINITY;
 
         Node nodea = null;
@@ -256,5 +256,5 @@
 
             // Find the node that is furthest from B (i.e. closest to A)
-            distance = 0.0;
+            distance = Double.NEGATIVE_INFINITY;
             for (Node n : nodes) {
                 double dist = Math.sqrt(nodeb.getEastNorth().distance(n.getEastNorth()));
