(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user