diff options
author | Sebastian Geerken <devnull@localhost> | 2013-08-19 23:46:31 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-08-19 23:46:31 +0200 |
commit | dda2892ca7a89459263a68726e25213ec1a2bec0 (patch) | |
tree | 11ccc980aa1884e4f4764bd30bb51c1b43d05d91 | |
parent | fa0492628ec32770769c0b2dd06b66cfaaadd4c2 (diff) |
Assertion.
-rw-r--r-- | dw/layout.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 9693bdbb..8495f2b9 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -691,8 +691,14 @@ void Layout::resizeIdle () if (topLevel) { Requisition requisition; Allocation allocation; - + topLevel->sizeRequest (&requisition); + + // This method is triggered by Widget::queueResize, which will, + // in any case, set NEEDS_ALLOCATE (indirectly, as + // ALLOCATE_QUEUED). This assertion helps to find + // inconsistences. + assert (topLevel->needsAllocate ()); allocation.x = allocation.y = 0; allocation.width = requisition.width; |