From 33dd214b4f5d1cbc1be517d36c0c6b5c4cdce53b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 26 Aug 2015 11:50:16 +0200 Subject: [PATCH] Fixed crash on closing the footprint editor with hot key (GAL). --- pcbnew/moduleframe.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/moduleframe.cpp b/pcbnew/moduleframe.cpp index 3fbbb7ac6f..9e2e9d1733 100644 --- a/pcbnew/moduleframe.cpp +++ b/pcbnew/moduleframe.cpp @@ -528,6 +528,9 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event ) } } + if( IsGalCanvasActive() ) + GetGalCanvas()->StopDrawing(); + //close the editor Destroy(); }