super(way);
this.editEnd = editEnd;
this.leaveNodeSelected = leaveNodeSelected;
- if (way.length==1 && way.getNode(0).parentWays.length==1) {
+ if (way.length==1) {
// drawing new way, so keep track of click in case creating a POI
lastClick=way.getNode(0);
lastClickTime=new Date();
controller.map.coord2lon(event.localX));
MainUndoStack.getGlobalStack().addAction(newPoiAction);
return new SelectedPOINode(newPoiAction.getNode());
+ } else if (Way(firstSelected).length==1) {
+ // It's not a poi, but they've double-clicked or clicked-twice the first node - do nothing
+ return this;
} else {
// double-click at end of way
return stopDrawing();