diff options
author | Sebastian Geerken <devnull@localhost> | 2014-07-01 11:47:02 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-07-01 11:47:02 +0200 |
commit | 8fe775ea0f01393b7691f1bffb81d30e6dce39c0 (patch) | |
tree | 8c2a6c956b1d61e0e1bb4cb2de8c45d6f9e7e2cd | |
parent | 4119c05c4c26473bdb61821f5bf1ec99bdd9bc62 (diff) |
Prevent negative widths.
-rw-r--r-- | dw/table.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/table.cc b/dw/table.cc index 7df16f7a..18597099 100644 --- a/dw/table.cc +++ b/dw/table.cc @@ -240,6 +240,7 @@ int Table::getAvailWidthOfChild (Widget *child, bool forceValue) * getStyle()->hBorderSpacing; for (int i = 0; i < children->get(n)->cell.colspanEff; i++) width += colWidths->get (col + i); + width = misc::max (width, 0); } } } |