From 5dd03b4ecdabd367da9bf71e8fbfe4f1b3042b00 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 18 Mar 2014 11:09:43 +0100 Subject: [PATCH] Fixed triple click bug while drawing zones with DRAWING_TOOL. --- pcbnew/tools/drawing_tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 41bb93340a..03be29686b 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1006,6 +1006,8 @@ int DRAWING_TOOL::drawZone( bool aKeepout ) m_frame->OnModify(); m_frame->SaveCopyInUndoList( zone, UR_NEW ); + + zone = NULL; } else delete zone;