Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java	(revision 861)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java	(revision 862)
@@ -265,5 +265,4 @@
 
 	protected void displaySegments(Color newColor, int newWidth, boolean newDash) {
-
 		if (currentPath != null) {
 			Graphics2D g2d = (Graphics2D)g;
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java	(revision 861)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java	(revision 862)
@@ -129,15 +129,15 @@
 			if (!osm.deleted && !osm.selected && osm.tagged)
 				osm.visit(this);
-		displaySegments(null);
+		displaySegments();
 
 		for (final OsmPrimitive osm : data.ways)
 			if (!osm.deleted && !osm.selected && !osm.tagged)
 				osm.visit(this);
-		displaySegments(null);
+		displaySegments();
 
 		for (final OsmPrimitive osm : data.getSelected())
 			if (!osm.deleted)
 				osm.visit(this);
-		displaySegments(null);
+		displaySegments();
 
 		for (final OsmPrimitive osm : data.nodes)
@@ -150,5 +150,5 @@
 				if (!osm.deleted)
 					visitVirtual((Way)osm);
-			displaySegments(null);
+			displaySegments();
 		}
 	}
@@ -297,5 +297,5 @@
 			}
 
-			displaySegments(currentColor); // draw nodes on top!
+			displaySegments(); // draw nodes on top!
 			Color c = g.getColor();
 			g.setColor(backgroundColor);
@@ -331,5 +331,4 @@
 	 */
 	protected void drawSegment(Point p1, Point p2, Color col, boolean showDirection) {
-
 		if (col != currentColor) displaySegments(col);
 
@@ -363,4 +362,7 @@
 	}
 
+	protected void displaySegments() {
+		displaySegments(null);
+	}
 	protected void displaySegments(Color newColor) {
 		if (currentPath != null) {
