Fix an other crash similar to f6881ce3
.
This commit is contained in:
parent
f6881ce3de
commit
fd0728becf
|
@ -937,6 +937,9 @@ int EDIT_TOOL::Remove( const TOOL_EVENT& aEvent )
|
||||||
statusPopup.Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
statusPopup.Move( wxGetMousePosition() + wxPoint( 20, 20 ) );
|
||||||
Wait();
|
Wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure statusPopup is hidden after use and before deleting it:
|
||||||
|
statusPopup.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_lockedSelected = false;
|
m_lockedSelected = false;
|
||||||
|
@ -1372,6 +1375,9 @@ bool EDIT_TOOL::pickCopyReferencePoint( VECTOR2I& aReferencePoint )
|
||||||
while( !done )
|
while( !done )
|
||||||
Wait();
|
Wait();
|
||||||
|
|
||||||
|
// Ensure statusPopup is hidden after use and before deleting it:
|
||||||
|
statusPopup->Hide();
|
||||||
|
|
||||||
if( pickedPoint.is_initialized() )
|
if( pickedPoint.is_initialized() )
|
||||||
aReferencePoint = pickedPoint.get();
|
aReferencePoint = pickedPoint.get();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue