(svn r16890) -Codechange: Allow raising and enabling/disabling of widgets even if they are not used.

This commit is contained in:
alberth 2009-07-20 18:39:38 +00:00
parent 38d88f10fe
commit 1978c7dc87
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ void Window::RaiseButtons()
}
if (this->nested_array != NULL) {
for (uint i = 0; i < this->nested_array_size; i++) {
if (this->IsWidgetLowered(i)) {
if (this->nested_array[i] != NULL && this->IsWidgetLowered(i)) {
this->RaiseWidget(i);
this->InvalidateWidget(i);
}

View File

@ -274,7 +274,7 @@ public:
}
if (this->nested_array != NULL) {
assert(widget_index < this->nested_array_size);
this->nested_array[widget_index]->SetDisabled(disab_stat);
if (this->nested_array[widget_index] != NULL) this->nested_array[widget_index]->SetDisabled(disab_stat);
}
}