Fix register cell height by adding 1px for cell border

This commit is contained in:
Robert Fewell 2017-12-30 17:03:12 +00:00
parent d6bb34efe7
commit 9f3a357a2a

View File

@ -209,8 +209,8 @@ set_dimensions_pass_one (GnucashSheet *sheet, CellBlock *cursor,
cd->pixel_height = gnc_item_edit_get_margin (item_edit, top_bottom) + cd->pixel_height = gnc_item_edit_get_margin (item_edit, top_bottom) +
gnc_item_edit_get_padding_border (item_edit, top_bottom); gnc_item_edit_get_padding_border (item_edit, top_bottom);
} }
// add 1 to cd->pixel_height to allow for a cell border
max_height = MAX(max_height, cd->pixel_height); max_height = MAX(max_height, cd->pixel_height + 1);
if (cd->pixel_width > 0) if (cd->pixel_width > 0)
continue; continue;