summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index f8e77161e..89448edea 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -1084,7 +1084,7 @@ struct MessageHistoryWindow : Window {
virtual void OnResize()
{
- this->vscroll->SetCapacity(this->GetWidget<NWidgetBase>(WID_MH_BACKGROUND)->current_y / this->line_height);
+ this->vscroll->SetCapacityFromWidget(this, WID_MH_BACKGROUND);
}
};