Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Don't die if user undoes way creation while in DrawWay.
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed Jun 17, 2011
1 parent 76ba481 commit 5635301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/systemeD/potlatch2/controller/DrawWay.as
Expand Up @@ -31,6 +31,8 @@ package net.systemeD.potlatch2.controller {
}

override public function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState {
if (firstSelected.deleted) return new NoSelection(); // in case user has clicked Undo

var mouse:Point;
var node:Node;
var paint:MapPaint = getMapPaint(DisplayObject(event.target));
Expand Down

0 comments on commit 5635301

Please sign in to comment.