Fix crash on Component::IsFocused if the component has been detached from the Window

This commit is contained in:
Simon Robertshaw 2012-07-29 13:17:09 +01:00
parent 90ad1fd856
commit 716ac44c29

View File

@ -113,7 +113,9 @@ void Component::TextPosition(std::string displayText)
bool Component::IsFocused() const
{
if(parentstate_)
return parentstate_->IsFocused(this);
return false;
}
void Component::SetParentWindow(Window* window)