aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-06-19 21:07:32 +0200
committerSebastian Geerken <devnull@localhost>2014-06-19 21:07:32 +0200
commitcdcaaca92d5e80107b4e181846f37a35fd45d6a6 (patch)
tree2f515bf1efa62fcf99a213504a454d7b6ab279b1
parent9aaf8d19878c7909bc3d60bb30f69bde88daa51b (diff)
RTFL.
-rw-r--r--dw/table.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/dw/table.cc b/dw/table.cc
index 8fe949bb..b0d7de97 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -46,6 +46,9 @@ Table::Table(bool limitTextWidth)
curRow = -1;
curCol = 0;
+ DBG_OBJ_SET_NUM ("numCols", numCols);
+ DBG_OBJ_SET_NUM ("numRows", numCols);
+
children = new misc::SimpleVector <Child*> (16);
colExtremes = new misc::SimpleVector<core::Extremes> (8);
colWidths = new misc::SimpleVector <int> (8);
@@ -618,13 +621,17 @@ void Table::reallocChildren (int newNumCols, int newNumRows)
numCols = newNumCols;
numRows = newNumRows;
+
+ DBG_OBJ_SET_NUM ("numCols", numCols);
+ DBG_OBJ_SET_NUM ("numRows", numCols);
}
// ----------------------------------------------------------------------
void Table::calcCellSizes (bool calcHeights)
{
- DBG_OBJ_MSG ("resize", 0, "<b>calcCellSizes</b>");
+ DBG_OBJ_MSGF ("resize", 0, "<b>calcCellSizes</b> (%s)",
+ calcHeights ? "true" : "false");
DBG_OBJ_MSG_START ();
if ((calcHeights && (needsResize () || resizeQueued () ||