(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.

This commit is contained in:
alberth
2009-11-22 13:22:53 +00:00
parent 2332034822
commit bf93372ca2
14 changed files with 48 additions and 42 deletions

View File

@@ -465,7 +465,7 @@ public:
{
this->DrawWidgets();
NWidgetCore *nwid = this->GetWidget<NWidgetCore>(this->graph_widget);
NWidgetBase *nwid = this->GetWidget<NWidgetBase>(this->graph_widget);
Rect r;
r.left = nwid->pos_x;
r.right = nwid->pos_x + nwid->current_x - 1;