don't remove the button region if it's state was inactive, it won't have

been there
This commit is contained in:
Cary Sandvig 2001-04-11 00:49:15 +00:00
parent 1384821aec
commit 47f03acb20
1 changed files with 3 additions and 1 deletions

View File

@ -477,7 +477,9 @@ void GuiButton::manage(GuiManager* mgr, EventHandler& eh, Node* n) {
void GuiButton::unmanage(void) {
if (_mgr != (GuiManager*)0L)
_mgr->remove_region(_rgn);
if ((_state != NONE) && (_state != INACTIVE) &&
(_state != INACTIVE_ROLLOVER))
_mgr->remove_region(_rgn);
if (_behavior_running)
this->stop_behavior();
switch_state(NONE);