Ported changeset 9878ab4: CCtrlTextbutton checkcoords should call it's text's checkcoords method. Fix #219.

--HG--
branch : develop
This commit is contained in:
dfighter1985 2014-12-22 01:26:04 +01:00
parent 93d5ffddb6
commit f189a98422
2 changed files with 10 additions and 0 deletions

View file

@ -51,6 +51,7 @@ namespace NLGUI
// Init part // Init part
virtual bool parse (xmlNodePtr cur,CInterfaceGroup * parentGroup); virtual bool parse (xmlNodePtr cur,CInterfaceGroup * parentGroup);
virtual void checkCoords();
virtual void updateCoords(); virtual void updateCoords();
virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); } virtual uint32 getMemory() { return (uint32)(sizeof(*this)+_Id.size()); }

View file

@ -868,6 +868,15 @@ namespace NLGUI
} }
} }
// ***************************************************************************
void CCtrlTextButton::checkCoords()
{
if( _ViewText != NULL )
_ViewText->checkCoords();
CCtrlBaseButton::checkCoords();
}
// *************************************************************************** // ***************************************************************************
void CCtrlTextButton::updateCoords() void CCtrlTextButton::updateCoords()