13
0

canvastable: if a cell is empty, still adjust horiz/vert coordinates so subsequent cells are aligned

This commit is contained in:
Paul Davis 2021-09-29 11:20:12 -06:00
parent 378e4e7a03
commit 0e779fbec9

View File

@ -472,7 +472,12 @@ Table::compute (Rect const & within)
vshift = std::max (vshift, total_cell_height);
} else {
/* this cell (r, c) has no item starting within it */
/* cell is empty, just adjust horizontal &
vertical shift values to get to the next
cell
*/
hdistance = variable_col_width * (c + 1);
vshift = std::max (vshift, variable_row_height);
}
}