aboutsummaryrefslogtreecommitdiff
path: root/dw/table.cc
diff options
context:
space:
mode:
authorcorvid, Sebastian Geerken <devnull@localhost>2014-07-19 22:16:17 +0200
committercorvid, Sebastian Geerken <devnull@localhost>2014-07-19 22:16:17 +0200
commit3557cfec52950ac759d0e1b732ebc718553f2e9e (patch)
tree9a916c0b28703ddd846b6115b6ef6fa7a3cb0505 /dw/table.cc
parent5383c702e78df346a22cc55e89eade813af08078 (diff)
Fixed comment.
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 edd83f88..f8efa9da 100644
--- a/dw/table.cc
+++ b/dw/table.cc
@@ -1098,9 +1098,9 @@ void Table::apportion2 (int totalWidth, int firstCol, int lastCol,
// The actual calculation is rather simple, the ith value is:
//
//
- // (max[i] - min[i]) * (totalMax - totalMin)
- // width[i] = totalMin + -----------------------------------------
- // (totalWidth - totalMin)
+ // (max[i] - min[i]) * (totalMax - totalMin)
+ // width[i] = min[i] + -----------------------------------------
+ // (totalWidth - totalMin)
//
// (Regard "total" as "sum".) With the following general
// definitions (for both the list and sums):