From 208e945879abab22c48f053ecc854b73603c9b88 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sat, 31 Jan 2015 12:05:08 +0100 Subject: Relative positions, part 4: bug fix. --- dw/oofposrelmgr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dw/oofposrelmgr.cc') 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) -- cgit v1.2.3