Fix an other crash similar to f6881ce3.

This commit is contained in:
jean-pierre charras 2020-01-31 16:41:47 +01:00
parent f6881ce3de
commit fd0728becf
1 changed files with 6 additions and 0 deletions

View File

@ -937,6 +937,9 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
statusPopup.Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
Wait();
}
// Ensure statusPopup is hidden after use and before deleting it:
statusPopup.Hide();
}
m_lockedSelected = false;
@ -1372,6 +1375,9 @@ bool EDIT_TOOL::pickCopyReferencePoint( VECTOR2I& aReferencePoint )
while( !done )
Wait();
// Ensure statusPopup is hidden after use and before deleting it:
statusPopup->Hide();
if( pickedPoint.is_initialized() )
aReferencePoint = pickedPoint.get();