summaryrefslogtreecommitdiff
path: root/src/gui/widgets/layout.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-14 23:19:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-14 23:19:49 +0300
commitb91146d2cee7397ea952cf7870e04df316d9613e (patch)
tree3101318c8314bf3f2c88da67f62d1c182bc27ddc /src/gui/widgets/layout.h
parentbcf7e61d6dd87164d79a211cbda1378e1ddc77bd (diff)
downloadmanaverse-b91146d2cee7397ea952cf7870e04df316d9613e.tar.gz
manaverse-b91146d2cee7397ea952cf7870e04df316d9613e.tar.bz2
manaverse-b91146d2cee7397ea952cf7870e04df316d9613e.tar.xz
manaverse-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.h4
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.