mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798822 - Move to blank transaction
If the move to blank action is used when a register is displayed in REG_STYLE_JOURNAL, the resulting highlighted cell is the split 'action' cell. In all other register styles it is the 'date' cell so test for the register style and decrement the vcell_loc.virt_row by one to move to the 'date' cell.
This commit is contained in:
parent
bc5cac4aa2
commit
b34a8b0add
@ -1738,8 +1738,12 @@ gnc_split_reg_jump_to_blank (GNCSplitReg *gsr)
|
||||
}
|
||||
|
||||
if (gnc_split_register_get_split_virt_loc (reg, blank, &vcell_loc))
|
||||
gnucash_register_goto_virt_cell (gsr->reg, vcell_loc);
|
||||
{
|
||||
if ((vcell_loc.virt_row > 1) && (reg->style == REG_STYLE_JOURNAL))
|
||||
vcell_loc.virt_row--; // highlight the date field
|
||||
|
||||
gnucash_register_goto_virt_cell (gsr->reg, vcell_loc);
|
||||
}
|
||||
gnc_ledger_display_refresh (gsr->ledger);
|
||||
LEAVE(" ");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user