mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
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:
parent
28718689dc
commit
9291ad23d6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user