From df5699b03e7bfe1b283f61eca5c59dd8b5345c29 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 2 Oct 2021 16:24:04 -0600 Subject: [PATCH] canvastable: fix comment to reflect split row/col homogeneity --- libs/canvas/table.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/libs/canvas/table.cc b/libs/canvas/table.cc index 28214318ce..7188de6659 100644 --- a/libs/canvas/table.cc +++ b/libs/canvas/table.cc @@ -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; }