From 08a8d604010b00f746c22d4f2a86a5dae5eee735 Mon Sep 17 00:00:00 2001 From: Charles Day Date: Mon, 9 Mar 2009 20:07:09 +0000 Subject: [PATCH] Register: Add a few debugging calls. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17986 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/gnc-split-reg.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c index 36355b27db..c7e3b7d53a 100644 --- a/src/gnome/gnc-split-reg.c +++ b/src/gnome/gnc-split-reg.c @@ -1330,14 +1330,20 @@ gnc_split_reg_jump_to_blank (GNCSplitReg *gsr) 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 @@ gnc_split_reg_match_trans_row( VirtualLocation virt_loc, 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 @@ gnc_split_reg_enter( GNCSplitReg *gsr, gboolean next_transaction ) 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_enter( GNCSplitReg *gsr, gboolean next_transaction ) gnc_split_reg_goto_next_trans_row( gsr ); else gnucash_register_goto_next_virt_row( gsr->reg ); + LEAVE(" "); } void