summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-16 20:34:57 +0000
committerrubidium <rubidium@openttd.org>2009-11-16 20:34:57 +0000
commit626de6b128f3580c9559b2d09b15bb4ed314a20a (patch)
tree93239d913d9ad578483f4e7cbd42e76427bcf7a5 /src/news_gui.cpp
parentcb3c4f2ebe01b91562ecf21b56742e31b4086d91 (diff)
downloadopenttd-626de6b128f3580c9559b2d09b15bb4ed314a20a.tar.xz
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 55aec1c22..ba6cf2059 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -922,7 +922,6 @@ struct MessageHistoryWindow : Window {
MessageHistoryWindow(const WindowDesc *desc) : Window()
{
this->InitNested(desc); // Initializes 'this->line_height' and 'this->date_width'.
- this->vscroll.SetCapacity((this->GetWidget<NWidgetBase>(MHW_BACKGROUND)->current_y - this->top_spacing - this->bottom_spacing) / this->line_height);
this->OnInvalidateData(0);
}