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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
alberth 15 years ago
parent 38d88f10fe
commit 1978c7dc87

@ -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);
}

@ -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);
}
}

Loading…
Cancel
Save