From 52640fd5fdaa8f2dc8fa6d266d46d4b1b0151ffa Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 4 Apr 2014 12:56:50 +0200 Subject: [PATCH] Fixed occasional crashes on undo/redo while dragging. --- pcbnew/tools/edit_tool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 1c84cc10c5..5be7f25396 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -111,6 +111,12 @@ int EDIT_TOOL::Main( TOOL_EVENT& aEvent ) break; // Finish } + else if( evt->Action() == TA_UNDO_REDO ) + { + unselect = true; + break; + } + // Dispatch TOOL_ACTIONs else if( evt->Category() == TC_COMMAND ) {