changeset 12117:aecfa01ba5fb draft

(svn r16530) -Fix [FS#2964], (r16501): Deduct additional widget length given away to a child from the total (Hirundo).
author alberth <alberth@openttd.org>
date Sun, 07 Jun 2009 14:34:43 +0000
parents 84e88a206e66
children 03fa04920217
files src/widget.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1428,6 +1428,7 @@
 				num_changing_childs--;
 				if (hor_step > 1) increment -= increment % hor_step;
 				child_wid->current_x = child_wid->smallest_x + increment;
+				additional_length -= increment;
 				continue;
 			}
 			next_biggest_stepsize = max(next_biggest_stepsize, hor_step);
@@ -1560,6 +1561,7 @@
 				num_changing_childs--;
 				if (vert_step > 1) increment -= increment % vert_step;
 				child_wid->current_y = child_wid->smallest_y + increment;
+				additional_length -= increment;
 				continue;
 			}
 			next_biggest_stepsize = max(next_biggest_stepsize, vert_step);