aboutsummaryrefslogtreecommitdiff
path: root/dw/table.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-04 22:33:19 +0100
committerSebastian Geerken <devnull@localhost>2015-01-04 22:33:19 +0100
commit2b3d6db4a823f525bc7c9a8cfb4e1b063afa8322 (patch)
tree712f10ffb900867a385909c07942c20be4c0181f /dw/table.cc
parenta19fefdba715219484434c9e772d13245b7d894d (diff)
Fixed usage of Extremes::adjustmentWidth for Table.
Diffstat (limited to 'dw/table.cc')
-rw-r--r--dw/table.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/table.cc b/dw/table.cc
index 3a7a0a41..5aaebb4b 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -735,10 +735,10 @@ void Table::forceCalcCellSizes (bool calcHeights)
getExtremes (&extremes);
int availWidth = getAvailWidth (true);
- // When adjust_table_min_width is set, use the minimal (intrinsic)
- // width for correction.
+ // When adjust_table_min_width is set, use perhaps the adjustment
+ // width for correction. (TODO: Is this necessary?)
int corrWidth =
- Table::getAdjustTableMinWidth () ? extremes.minWidthIntrinsic : 0;
+ Table::getAdjustTableMinWidth () ? extremes.adjustmentWidth : 0;
int totalWidth = misc::max (availWidth, corrWidth)
- ((numCols + 1) * getStyle()->hBorderSpacing + boxDiffWidth ());