mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
A little crash fix.
This commit is contained in:
parent
fcf3482b02
commit
bb309e0299
2 changed files with 9 additions and 1 deletions
|
@ -508,7 +508,7 @@ namespace NLGUI
|
||||||
|
|
||||||
/// Called when the widget is deleted,
|
/// Called when the widget is deleted,
|
||||||
/// so other widgets in the group can check if it belongs to them
|
/// 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
|
/// Move the element by x in the X direction and y in the Y direction
|
||||||
// Uses real coordinates
|
// Uses real coordinates
|
||||||
|
|
|
@ -1685,6 +1685,14 @@ namespace NLGUI
|
||||||
invalidateCoords();
|
invalidateCoords();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CInterfaceElement::onWidgetDeleted( CInterfaceElement *e )
|
||||||
|
{
|
||||||
|
if( e == getParentPos() )
|
||||||
|
setParentPos( NULL );
|
||||||
|
if( e == getParentSize() )
|
||||||
|
setParentSize( NULL );
|
||||||
|
}
|
||||||
|
|
||||||
CStringMapper* CStringShared::_UIStringMapper = NULL;
|
CStringMapper* CStringShared::_UIStringMapper = NULL;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue