Index: /trunk/src/org/openstreetmap/josm/gui/MapScaler.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/MapScaler.java	(revision 1907)
+++ /trunk/src/org/openstreetmap/josm/gui/MapScaler.java	(revision 1908)
@@ -25,7 +25,5 @@
 
     @Override public void paint(Graphics g) {
-        double dist = mv.getDist100Pixel();
-        String text = dist >= 2000 ? Math.round(dist/100)/10 +" km" : (dist >= 1
-        ? Math.round(dist*10)/10 +" m" : "< 1 m");
+        String text = mv.getDist100PixelText();
         Rectangle2D bound = g.getFontMetrics().getStringBounds(text, g);
         g.setColor(getColor());
Index: /trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java	(revision 1907)
+++ /trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java	(revision 1908)
@@ -68,4 +68,11 @@
         id.update(x.getBytes());
         return new Long(id.getValue()).intValue();
+    }
+
+    public String getDist100PixelText()
+    {
+        double dist = getDist100Pixel();
+        return dist >= 2000 ? Math.round(dist/100)/10 +" km" : (dist >= 1
+        ? Math.round(dist*10)/10 +" m" : "< 1 m");
     }
 
