summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-31 20:52:35 +0000
committeralberth <alberth@openttd.org>2009-05-31 20:52:35 +0000
commitba9e014bdc06943a2b32a62e1046c60e845f8243 (patch)
tree6a46b6479d5eaa90f4600997c8b4155264aacba1
parent743f12fad01ddb13e2ea14d5e40f413c220a9e2a (diff)
downloadopenttd-ba9e014bdc06943a2b32a62e1046c60e845f8243.tar.xz
(svn r16489) -Fix [FS#2937] (r16258): Do not resize a widget twice (erikjanp)
-rw-r--r--src/misc_gui.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 14340e829..bcd152e82 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1958,13 +1958,11 @@ public:
uint diff = delta.x / 2;
this->widget[SLWW_SORT_BYNAME].right += diff;
this->widget[SLWW_SORT_BYDATE].left += diff;
- this->widget[SLWW_SORT_BYDATE].right += delta.x;
/* Same for widget 11 and 12 in save-dialog */
if (_saveload_mode == SLD_SAVE_GAME || _saveload_mode == SLD_SAVE_SCENARIO) {
this->widget[SLWW_DELETE_SELECTION].right += diff;
this->widget[SLWW_SAVE_GAME].left += diff;
- this->widget[SLWW_SAVE_GAME].right += delta.x;
}
this->vscroll.cap += delta.y / 10;