From 8415a2238ff07bc5f0f50a735b8403cffa1d4e10 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 15 Nov 2009 13:08:50 +0000 Subject: (svn r18090) -Fix: Only allow raising of WWT_* nested widgets. --- src/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 444e5cca5..034cff2a0 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -250,7 +250,8 @@ void Window::RaiseButtons(bool autoraise) } if (this->nested_array != NULL) { for (uint i = 0; i < this->nested_array_size; i++) { - if (this->nested_array[i] != NULL && (!autoraise || (this->nested_array[i]->type & WWB_PUSHBUTTON)) && this->IsWidgetLowered(i)) { + if (this->nested_array[i] != NULL && (this->nested_array[i]->type & ~WWB_PUSHBUTTON) < WWT_LAST && + (!autoraise || (this->nested_array[i]->type & WWB_PUSHBUTTON)) && this->IsWidgetLowered(i)) { this->RaiseWidget(i); this->SetWidgetDirty(i); } -- cgit v1.2.3-70-g09d2