From b91146d2cee7397ea952cf7870e04df316d9613e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Nov 2011 23:19:49 +0300 Subject: Fix incorrect memory access if hiding some gui layout cells. --- src/gui/widgets/layout.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/layout.h') diff --git a/src/gui/widgets/layout.h b/src/gui/widgets/layout.h index c4c703644..754d13a0b 100644 --- a/src/gui/widgets/layout.h +++ b/src/gui/widgets/layout.h @@ -127,8 +127,8 @@ class LayoutArray /** * Gets the position and size of a widget along a given axis */ - void align(int &pos, int &size, int dim, - LayoutCell const &cell, int *sizes) const; + void align(int &pos, int &size, int dim, LayoutCell const &cell, + int *sizes, int sizeCount) const; /** * Ensures the private vectors are large enough. -- cgit v1.2.3-60-g2f50