aboutsummaryrefslogtreecommitdiff
path: root/dw/table.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-19 20:49:47 +0200
committerSebastian Geerken <devnull@localhost>2014-09-19 20:49:47 +0200
commitbb979551a5903628c0013458522313513b6f58ed (patch)
treecfd05cea4005d7ade82a64dec3a007c14f24579a /dw/table.cc
parentc46c528a7ba1a8b0df427d5f8d3e6a1395c4d3e1 (diff)
Fixed wrong assertion.
Diffstat (limited to 'dw/table.cc')
-rw-r--r--dw/table.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/dw/table.cc b/dw/table.cc
index 899bfe89..f7747cf4 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -228,13 +228,12 @@ int Table::getAvailWidthOfChild (Widget *child, bool forceValue)
child, forceValue ? "true" : "false");
int width;
+ oof::OutOfFlowMgr *oofm;
- if (isWidgetOOF(child)) {
- assert (getWidgetOutOfFlowMgr(child) &&
- getWidgetOutOfFlowMgr(child)->dealingWithSizeOfChild (child));
- width =
- getWidgetOutOfFlowMgr(child)->getAvailWidthOfChild (child, forceValue);
- } else {
+ if (isWidgetOOF(child) && (oofm = getWidgetOutOfFlowMgr(child)) &&
+ oofm->dealingWithSizeOfChild (child))
+ width = oofm->getAvailWidthOfChild (child, forceValue);
+ else {
// Unlike other containers, the table widget sometimes narrows
// columns to a width less than specified by CSS (see
// forceCalcCellSizes). For this reason, the column widths have to