diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-14 23:19:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-14 23:19:49 +0300 |
commit | b91146d2cee7397ea952cf7870e04df316d9613e (patch) | |
tree | 3101318c8314bf3f2c88da67f62d1c182bc27ddc /src/gui/widgets/layout.h | |
parent | bcf7e61d6dd87164d79a211cbda1378e1ddc77bd (diff) | |
download | manaplus-b91146d2cee7397ea952cf7870e04df316d9613e.tar.gz manaplus-b91146d2cee7397ea952cf7870e04df316d9613e.tar.bz2 manaplus-b91146d2cee7397ea952cf7870e04df316d9613e.tar.xz manaplus-b91146d2cee7397ea952cf7870e04df316d9613e.zip |
Fix incorrect memory access if hiding some gui layout cells.
Diffstat (limited to 'src/gui/widgets/layout.h')
-rw-r--r-- | src/gui/widgets/layout.h | 4 |
1 files changed, 2 insertions, 2 deletions
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. |