From 3bc0a4ed3ee3b7e7ea084adb431f1afdad52dfad Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 30 Oct 2009 07:51:33 +0000 Subject: (svn r17903) -Codechange: don't get a modifiable NWidget from a const Window --- src/widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index 880a94ae5..befc94da3 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -855,7 +855,7 @@ void Window::DrawSortButtonState(int widget, SortButtonState state) const top = this->widget[widget].top; } else { assert(this->nested_array != NULL); - NWidgetBase *nwid = this->GetWidget(widget); + const NWidgetBase *nwid = this->GetWidget(widget); base = offset + nwid->pos_x + (_dynlang.text_dir == TD_LTR ? nwid->current_x - WD_SORTBUTTON_ARROW_WIDTH : 0); top = nwid->pos_y; } -- cgit v1.2.3-54-g00ecf