Fixed crash on closing the footprint editor with hot key (GAL).

This commit is contained in:
Maciej Suminski 2015-08-26 11:50:16 +02:00
parent a813deb579
commit 33dd214b4f
1 changed files with 3 additions and 0 deletions

View File

@ -528,6 +528,9 @@ void FOOTPRINT_EDIT_FRAME::OnCloseWindow( wxCloseEvent& Event )
} }
} }
if( IsGalCanvasActive() )
GetGalCanvas()->StopDrawing();
//close the editor //close the editor
Destroy(); Destroy();
} }