Index: /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 2527)
+++ /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 2528)
@@ -313,4 +313,5 @@
             // Change draw tool only if mouse position is nearly the same, as
             // otherwise fast clicks will count as a double click
+            getCurrentDataSet().setSelected(Collections.singleton(lastUsedNode));
             finishDrawing();
             return;
@@ -463,6 +464,5 @@
                 return;
             }
-            if(!wayIsFinishedTemp)
-            {
+            if(!wayIsFinishedTemp){
                 if(isSelfContainedWay(selectedWay, n0, n))
                     return;
@@ -892,5 +892,5 @@
         if (!Main.map.mapView.getBounds().contains(mousePos)) return;
 
-        Graphics2D g2 = (Graphics2D) g;
+        Graphics2D g2 = g;
         g2.setColor(selectedColor);
         g2.setStroke(new BasicStroke(3, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
