Browse Source

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

merge-requests/16/head
jean-pierre charras 6 years ago
parent
commit
c7ce93e10e
  1. 4
      pcbnew/pcb_edit_frame.cpp

4
pcbnew/pcb_edit_frame.cpp

@ -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

Loading…
Cancel
Save