AUDIT: r17078 - gnucash/trunk/src/register/ledger-core - Bug #347474: When tabbing off the last showed split, correctly focus new empty split.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Apr 12 15:17:59 EDT 2008


Author: andi5
Date: 2008-04-12 15:17:58 -0400 (Sat, 12 Apr 2008)
New Revision: 17078
Trac: http://svn.gnucash.org/trac/changeset/17078

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-load.c
Log:
Bug #347474: When tabbing off the last showed split, correctly focus new empty split.

If info->traverse_to_new is true, use CURSOR_CLASS_SPLIT as find_class
to avoid focussing the transaction.
BP


Modified: gnucash/trunk/src/register/ledger-core/split-register-load.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-load.c	2008-04-12 19:17:50 UTC (rev 17077)
+++ gnucash/trunk/src/register/ledger-core/split-register-load.c	2008-04-12 19:17:58 UTC (rev 17078)
@@ -302,14 +302,15 @@
     find_trans = blank_trans;
     find_split = NULL;
     find_trans_split = blank_split;
+    find_class = CURSOR_CLASS_SPLIT;
   }
   else
   {
     find_trans = info->cursor_hint_trans;
     find_split = info->cursor_hint_split;
     find_trans_split = info->cursor_hint_trans_split;
+    find_class = info->cursor_hint_cursor_class;
   }
-  find_class = info->cursor_hint_cursor_class;
 
   save_loc = table->current_cursor_loc;
 



More information about the gnucash-changes mailing list