diff options
author | frosch <frosch@openttd.org> | 2013-06-30 14:33:32 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-30 14:33:32 +0000 |
commit | e184b9799cd855eadfae0863a5a7930168535c89 (patch) | |
tree | cf05abe7755550bd356830b345c0e2f45a829921 /src/group_gui.cpp | |
parent | 5f8f71edf069a7298fa2b435ca9ee63a625d778f (diff) | |
download | openttd-e184b9799cd855eadfae0863a5a7930168535c89.tar.xz |
(svn r25533) -Codechange: Use SetCapacityFromWidget more often.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index af2941527..8c1859764 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -680,7 +680,7 @@ public: virtual void OnResize() { NWidgetCore *nwi = this->GetWidget<NWidgetCore>(WID_GL_LIST_GROUP); - this->group_sb->SetCapacity(nwi->current_y / this->tiny_step_height); + this->group_sb->SetCapacityFromWidget(this, WID_GL_LIST_GROUP); nwi->widget_data = (this->group_sb->GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); nwi = this->GetWidget<NWidgetCore>(WID_GL_LIST_VEHICLE); |