(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
This commit is contained in:
@@ -2367,7 +2367,7 @@ void NWidgetLeaf::Draw(const Window *w)
|
||||
|
||||
case WWT_EDITBOX: {
|
||||
DrawFrameRect(r.left, r.top, r.right, r.bottom, this->colour, FR_LOWERED | FR_DARKENED);
|
||||
const QueryString *query = dynamic_cast<const QueryString*>(w);
|
||||
const QueryString *query = w->GetQueryString(this->index);
|
||||
if (query != NULL) query->DrawEditBox(w, this->index);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user