Skip to content

Commit

Permalink
Bug 798822 - Move to blank transaction
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Bob-IT committed May 24, 2024
1 parent bc5cac4 commit b34a8b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gnucash/gnome/gnc-split-reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ");
}
Expand Down

0 comments on commit b34a8b0

Please sign in to comment.