Skip to content

Commit b34a8b0

Browse files
committed
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.
1 parent bc5cac4 commit b34a8b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gnucash/gnome/gnc-split-reg.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -1738,8 +1738,12 @@ gnc_split_reg_jump_to_blank (GNCSplitReg *gsr)
17381738
}
17391739

17401740
if (gnc_split_register_get_split_virt_loc (reg, blank, &vcell_loc))
1741-
gnucash_register_goto_virt_cell (gsr->reg, vcell_loc);
1741+
{
1742+
if ((vcell_loc.virt_row > 1) && (reg->style == REG_STYLE_JOURNAL))
1743+
vcell_loc.virt_row--; // highlight the date field
17421744

1745+
gnucash_register_goto_virt_cell (gsr->reg, vcell_loc);
1746+
}
17431747
gnc_ledger_display_refresh (gsr->ledger);
17441748
LEAVE(" ");
17451749
}

0 commit comments

Comments
 (0)