mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3554 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4f46f04230
commit
7b76932785
@ -752,16 +752,16 @@ xaccSRExpandCurrentTrans (SplitRegister *reg, gboolean expand)
|
|||||||
gnc_table_set_virt_cell_cursor (reg->table,
|
gnc_table_set_virt_cell_cursor (reg->table,
|
||||||
reg->table->current_cursor_loc.vcell_loc,
|
reg->table->current_cursor_loc.vcell_loc,
|
||||||
sr_get_active_cursor (reg));
|
sr_get_active_cursor (reg));
|
||||||
|
|
||||||
xaccSRSetTransVisible (reg, reg->table->current_cursor_loc.vcell_loc,
|
xaccSRSetTransVisible (reg, reg->table->current_cursor_loc.vcell_loc,
|
||||||
expand, FALSE);
|
expand, FALSE);
|
||||||
|
|
||||||
if (expand)
|
|
||||||
{
|
{
|
||||||
VirtualLocation virt_loc;
|
VirtualLocation virt_loc;
|
||||||
|
|
||||||
virt_loc = reg->table->current_cursor_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))
|
if (gnc_table_find_close_valid_cell (reg->table, &virt_loc, FALSE))
|
||||||
gnc_table_move_cursor_gui (reg->table, virt_loc);
|
gnc_table_move_cursor_gui (reg->table, virt_loc);
|
||||||
|
Loading…
Reference in New Issue
Block a user