r17986 - gnucash/trunk/src/gnome - Register: Add a few debugging calls.

Charles Day cedayiv at cvs.gnucash.org
Mon Mar 9 16:07:09 EDT 2009


Author: cedayiv
Date: 2009-03-09 16:07:09 -0400 (Mon, 09 Mar 2009)
New Revision: 17986
Trac: http://svn.gnucash.org/trac/changeset/17986

Modified:
   gnucash/trunk/src/gnome/gnc-split-reg.c
Log:
Register: Add a few debugging calls.


Modified: gnucash/trunk/src/gnome/gnc-split-reg.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-split-reg.c	2009-03-09 19:47:58 UTC (rev 17985)
+++ gnucash/trunk/src/gnome/gnc-split-reg.c	2009-03-09 20:07:09 UTC (rev 17986)
@@ -1330,14 +1330,20 @@
   VirtualCellLocation vcell_loc;
   Split *blank;
 
+  ENTER("gsr=%p", gsr);
+
   blank = gnc_split_register_get_blank_split (reg);
   if (blank == NULL)
+  {
+    LEAVE("no blank split");
     return;
+  }
 
   if (gnc_split_register_get_split_virt_loc (reg, blank, &vcell_loc))
     gnucash_register_goto_virt_cell (gsr->reg, vcell_loc);
 
   gnc_ledger_display_refresh (gsr->ledger);
+  LEAVE(" ");
 }
 
 void
@@ -1698,9 +1704,11 @@
 static void
 gnc_split_reg_goto_next_trans_row (GNCSplitReg *gsr)
 {
+  ENTER("gsr=%p", gsr);
   gnucash_register_goto_next_matching_row( gsr->reg,
                                            gnc_split_reg_match_trans_row,
                                            gsr );
+  LEAVE(" ");
 }
 
 void
@@ -1709,6 +1717,8 @@
   SplitRegister *sr = gnc_ledger_display_get_split_register( gsr->ledger );
   gboolean goto_blank;
 
+  ENTER("gsr=%p, next_transaction=%s", gsr, next_transaction? "TRUE" : "FALSE");
+
   goto_blank = gnc_gconf_get_bool(GCONF_GENERAL_REGISTER,
 				  "enter_moves_to_end", NULL);
 
@@ -1750,6 +1760,7 @@
     gnc_split_reg_goto_next_trans_row( gsr );
   else
     gnucash_register_goto_next_virt_row( gsr->reg );
+  LEAVE(" ");
 }
 
 void



More information about the gnucash-changes mailing list