git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3554 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-01-29 23:27:56 +00:00
parent 4f46f04230
commit 7b76932785

View File

@ -752,16 +752,16 @@ xaccSRExpandCurrentTrans (SplitRegister *reg, gboolean expand)
gnc_table_set_virt_cell_cursor (reg->table,
reg->table->current_cursor_loc.vcell_loc,
sr_get_active_cursor (reg));
xaccSRSetTransVisible (reg, reg->table->current_cursor_loc.vcell_loc,
expand, FALSE);
if (expand)
{
VirtualLocation virt_loc;
virt_loc = reg->table->current_cursor_loc;
if (!gnc_table_virtual_loc_valid (reg->table, virt_loc, FALSE))
if (!expand || !gnc_table_virtual_loc_valid (reg->table, virt_loc, FALSE))
{
if (gnc_table_find_close_valid_cell (reg->table, &virt_loc, FALSE))
gnc_table_move_cursor_gui (reg->table, virt_loc);