gnucash maint: Fixup previous commit
Geert Janssens
gjanssens at code.gnucash.org
Sun Mar 13 08:55:19 EDT 2016
Updated via https://github.com/Gnucash/gnucash/commit/ee70922c (commit)
from https://github.com/Gnucash/gnucash/commit/7ef25689 (commit)
commit ee70922c5bcc38f6ef9a09050c12219f1ad634e9
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Sun Mar 13 13:54:46 2016 +0100
Fixup previous commit
Forgot to add my changes before pushing...
diff --git a/src/gnome/gnc-budget-view.c b/src/gnome/gnc-budget-view.c
index b70ccb5..e691b5e 100644
--- a/src/gnome/gnc-budget-view.c
+++ b/src/gnome/gnc-budget-view.c
@@ -899,8 +899,14 @@ totals_col_source(GtkTreeViewColumn *col, GtkCellRenderer *cell,
gchar amtbuff[100]; //FIXME: overkill, where's the #define?
gint width; // FIXME: VARIABLE NOT NEEDED?
-
+
gint i;
+ gint num_top_accounts;
+
+ gnc_numeric totalincome = gnc_numeric_zero();
+ gnc_numeric totalexpenses = gnc_numeric_zero();
+ gnc_numeric totalassets = gnc_numeric_zero();
+ gnc_numeric totalliabilities = gnc_numeric_zero();
view = GNC_BUDGET_VIEW(user_data);
priv = GNC_BUDGET_VIEW_GET_PRIVATE(view);
@@ -910,17 +916,8 @@ totals_col_source(GtkTreeViewColumn *col, GtkCellRenderer *cell,
period_num = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(col),
"period_num"));
- gnc_numeric totalincome;
- totalincome = gnc_numeric_zero();
- gnc_numeric totalexpenses;
- totalexpenses = gnc_numeric_zero();
- gnc_numeric totalassets;
- totalassets = gnc_numeric_zero();
- gnc_numeric totalliabilities;
- totalliabilities = gnc_numeric_zero();
-
-
- gint num_top_accounts = gnc_account_n_children(priv->rootAcct);
+
+ num_top_accounts = gnc_account_n_children(priv->rootAcct);
// step through each child account of the root, find the total income, expenses, liabilities, and assets.
Summary of changes:
src/gnome/gnc-budget-view.c | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
More information about the gnucash-changes
mailing list