Index: trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java	(revision 17431)
+++ trunk/src/org/openstreetmap/josm/gui/draw/MapViewPath.java	(revision 17432)
@@ -164,5 +164,4 @@
     private void appendWay(Iterable<? extends ILatLon> nodes, boolean connect, boolean close) {
         boolean useMoveTo = !connect;
-        ILatLon first = null;
         for (ILatLon n : nodes) {
             if (useMoveTo) {
@@ -171,11 +170,8 @@
                 lineTo(n);
             }
-            if (close && first == null) {
-                first = n;
-            }
             useMoveTo = false;
         }
-        if (first != null) {
-            lineTo(first);
+        if (close) {
+            closePath();
         }
     }
