From 5635301a3d180da642a49994b9ebe36524159866 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Fri, 17 Jun 2011 17:18:37 +0100 Subject: [PATCH] Don't die if user undoes way creation while in DrawWay. --- net/systemeD/potlatch2/controller/DrawWay.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/systemeD/potlatch2/controller/DrawWay.as b/net/systemeD/potlatch2/controller/DrawWay.as index 1984ecef..f8811f9d 100644 --- a/net/systemeD/potlatch2/controller/DrawWay.as +++ b/net/systemeD/potlatch2/controller/DrawWay.as @@ -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)); -- 2.30.0