summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-22 11:33:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-22 13:45:22 +0000
commit4546ef5664e7098228d890d112935737d273701b (patch)
tree240fea2113a472c627d1a71cd2162594f75d51f4 /vcl
parentb7e6c8459b15a4fdb9ebb269b27cdeea82c8c5c2 (diff)
*height* not width
Change-Id: I6ca792b9658e89d1b3dd147332e57625eb31256a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index a9aaf4c243bb..e82f5b6c970c 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -694,7 +694,7 @@ void VclGrid::calcMaxs(const array_type &A, std::vector<Value> &rWidths, std::ve
bool bForceExpandAll = false;
sal_Int32 nExpandables = 0;
for (sal_Int32 nSpanY = 0; nSpanY < nHeight; ++nSpanY)
- if (rWidths[y+nSpanY].m_bExpand)
+ if (rHeights[y+nSpanY].m_bExpand)
++nExpandables;
if (nExpandables == 0)
{