Index: /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java
===================================================================
--- /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java	(revision 2852)
+++ /applications/editors/josm/plugins/mappaint/src/mappaint/MapPaintVisitor.java	(revision 2853)
@@ -20,4 +20,7 @@
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor;
+
+import java.awt.event.MouseEvent;
+
 
 /**
@@ -181,6 +184,9 @@
 		if (ls.shown) return;
 		ls.shown=true;
+		if (ls.incomplete)
+			return;
 		Point p1 = nc.getPoint(ls.from.eastNorth);
 		Point p2 = nc.getPoint(ls.to.eastNorth);
+
 		// checking if this segment is visible
 		if ((p1.x < 0) && (p2.x < 0)) return ;
@@ -189,6 +195,4 @@
 		if ((p1.y > nc.getHeight()) && (p2.y > nc.getHeight())) return ;
 		Graphics2D g2d = (Graphics2D)g;
-		if (ls.incomplete)
-			return;
 		if (ls.selected)
 			col = getPreferencesColor("selected", Color.YELLOW);
@@ -204,6 +208,6 @@
 		if (showDirection) {
 			double t = Math.atan2(p2.y-p1.y, p2.x-p1.x) + Math.PI;
-	    g.drawLine(p2.x,p2.y, (int)(p2.x + 10*Math.cos(t-PHI)), (int)(p2.y + 10*Math.sin(t-PHI)));
-	    g.drawLine(p2.x,p2.y, (int)(p2.x + 10*Math.cos(t+PHI)), (int)(p2.y + 10*Math.sin(t+PHI)));
+			g.drawLine(p2.x,p2.y, (int)(p2.x + 10*Math.cos(t-PHI)), (int)(p2.y + 10*Math.sin(t-PHI)));
+			g.drawLine(p2.x,p2.y, (int)(p2.x + 10*Math.cos(t+PHI)), (int)(p2.y + 10*Math.sin(t+PHI)));
 		}
 		g2d.setStroke(new BasicStroke(1));
@@ -247,5 +251,5 @@
 			if (!osm.deleted)
 				osm.visit(this);
-
+		
 		for (final OsmPrimitive osm : data.nodes)
 			if (!osm.deleted)
@@ -259,2 +263,3 @@
 	}
 }
+
