13
0

canvastable: fix comment to reflect split row/col homogeneity

This commit is contained in:
Paul Davis 2021-10-02 16:24:04 -06:00
parent 8130d265fd
commit df5699b03e

View File

@ -340,15 +340,20 @@ Table::compute (Rect const & within)
}
if (col_homogenous) {
/* reset total width & height using the widest & heighest,
multiplied by the number of cols/rows, since they wll all be
the same height. the values before we do this are
cumulative, and do not (necessarily) reflect homogeneity
/* reset total width using the widest, multiplied by the number
of cols, since they wll all be the same height. the values
before we do this are cumulative, and do not (necessarily)
reflect homogeneity
*/
total_natural_width = widest_column_width * cols;
}
if (row_homogenous) {
/* reset total height using the heighest, multiplied by the
number of rows, since they wll all be the same height. the
values before we do this are cumulative, and do not
(necessarily) reflect homogeneity
*/
total_natural_height = highest_row_height * rows;
}