Take account of some columns in the register having 'Tot' added.

In the journal register and when using auto split some register columns
have 'Tot added to them like 'Tot Debit' depending on where the cursor
is so if you tried to size that column with a double click on the
header it would be based on the short name. This changes fixes that.
This commit is contained in:
Robert Fewell 2019-12-27 16:08:42 +00:00
parent 28718689dc
commit 9291ad23d6

View File

@ -2294,7 +2294,11 @@ gnucash_sheet_col_max_width (GnucashSheet *sheet, gint virt_col, gint cell_col)
VirtualLocation virt_loc;
const char *text;
virt_loc.vcell_loc = vcell_loc;
if (virt_row == 0)
virt_loc.vcell_loc = sheet->table->current_cursor_loc.vcell_loc;
else
virt_loc.vcell_loc = vcell_loc;
virt_loc.phys_row_offset = cell_row;
virt_loc.phys_col_offset = cell_col;