Pcbnew: fix crash on exit, if a place zone tool is activated.

This commit is contained in:
jean-pierre charras 2019-12-08 17:59:16 +01:00
parent fa133f3f5c
commit c7ce93e10e
1 changed files with 4 additions and 0 deletions

View File

@ -488,6 +488,10 @@ void PCB_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
}
}
// Be sure no tool is left activated, to avoid crash on exit,
// (happens with some tools)
GetToolManager()->DeactivateTool();
// On Windows 7 / 32 bits, on OpenGL mode only, Pcbnew crashes
// when closing this frame if a footprint was selected, and the footprint editor called
// to edit this footprint, and when closing pcbnew if this footprint is still selected