aboutsummaryrefslogtreecommitdiff
path: root/dw/oofposrelmgr.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-31 12:05:08 +0100
committerSebastian Geerken <devnull@localhost>2015-01-31 12:05:08 +0100
commit208e945879abab22c48f053ecc854b73603c9b88 (patch)
tree4ecc5cf111f85e73b06deb953606bfdbead66115 /dw/oofposrelmgr.cc
parentf5924fda39ecc9b1851e5a52703948444c05e644 (diff)
Relative positions, part 4: bug fix.
Diffstat (limited to 'dw/oofposrelmgr.cc')
-rw-r--r--dw/oofposrelmgr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/oofposrelmgr.cc b/dw/oofposrelmgr.cc
index 3777755c..90cc47ae 100644
--- a/dw/oofposrelmgr.cc
+++ b/dw/oofposrelmgr.cc
@@ -66,7 +66,8 @@ void OOFPosRelMgr::calcWidgetRefSize (Widget *widget, Requisition *size)
void OOFPosRelMgr::sizeAllocateStart (OOFAwareWidget *caller,
Allocation *allocation)
{
- containerAllocation = *allocation;
+ if (caller == container)
+ containerAllocation = *allocation;
}
void OOFPosRelMgr::sizeAllocateEnd (OOFAwareWidget *caller)