- row_dimens[c->second.y] = max (row_dimens[c->second.y], bb.height());
- col_dimens[c->second.x] = max (col_dimens[c->second.x] , bb.width());
- }
- }
-
- /* now sum the row and column widths, so that row_dimens is transformed
- * into the y coordinate of the upper left of each row, and col_dimens
- * is transformed into the x coordinate of the left edge of each
- * column.
- */
+ const double per_col_width = bb.width() / c->second.col_span;
+ const double per_row_height = bb.height() / c->second.row_span;