A little crash fix.

--HG--
branch : dfighter-tools
hg/feature/light_cycle
dfighter1985 10 years ago
parent bec078af25
commit a1e2c5667a

@ -508,7 +508,7 @@ namespace NLGUI
/// Called when the widget is deleted,
/// so other widgets in the group can check if it belongs to them
virtual void onWidgetDeleted( CInterfaceElement *e ){}
virtual void onWidgetDeleted( CInterfaceElement *e );
/// Move the element by x in the X direction and y in the Y direction
// Uses real coordinates

@ -1685,6 +1685,14 @@ namespace NLGUI
invalidateCoords();
}
void CInterfaceElement::onWidgetDeleted( CInterfaceElement *e )
{
if( e == getParentPos() )
setParentPos( NULL );
if( e == getParentSize() )
setParentSize( NULL );
}
CStringMapper* CStringShared::_UIStringMapper = NULL;

Loading…
Cancel
Save