aboutsummaryrefslogtreecommitdiff
path: root/dw/table.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-22 15:58:24 +0200
committerSebastian Geerken <devnull@localhost>2014-07-22 15:58:24 +0200
commitb6aeac03a3e6c5f4ea7edaad9a42b79cf5a8fe10 (patch)
treeea92b6c09c3f254693f3ac609997e0e4743e907d /dw/table.cc
parent6cfa2fc2dc1613cd6589cf76a3b425a71e17e7ce (diff)
Adjust_table_min_width is also applied to table cells (to avoid inconsistent rendering).
Diffstat (limited to 'dw/table.cc')
-rw-r--r--dw/table.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/dw/table.cc b/dw/table.cc
index b19db790..3959f01a 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -894,7 +894,7 @@ void Table::forceCalcCellSizes (bool calcHeights)
colWidths, 0);
} else {
DBG_OBJ_MSGF ("resize", 1,
- "subcase 2b: %d columns with specified width",
+ "subcase 2b: %d column(s) with specified width",
numColWidthSpecified);
// Seperate columns with specified and unspecified width, and
@@ -943,15 +943,26 @@ void Table::forceCalcCellSizes (bool calcHeights)
DBG_OBJ_MSG_END ();
}
+ DBG_OBJ_MSG ("resize", 1, "finally setting column widths:");
+ DBG_OBJ_MSG_START ();
+
colWidths->setSize (colExtremes->size());
indexNotSpecified = 0;
for (int col = 0; col < colExtremes->size(); col++)
- if (colWidthSpecified->get (col))
+ if (colWidthSpecified->get (col)) {
+ DBG_OBJ_MSGF ("resize", 1, "#%d: specified, gets maximum %d",
+ col, colExtremes->getRef(col)->maxWidth);
colWidths->set (col, colExtremes->getRef(col)->maxWidth);
- else {
+ } else {
+ DBG_OBJ_MSGF ("resize", 1, "#%d: not specified, gets value %d "
+ "at position %d from temporary list",
+ col, apportionDest.get (indexNotSpecified),
+ indexNotSpecified);
colWidths->set (col, apportionDest.get (indexNotSpecified));
indexNotSpecified++;
}
+
+ DBG_OBJ_MSG_END ();
}
} else {
// Normal apportioning.