disable recursion for balance and balance (usd)

https://bugzilla.gnome.org/show_bug.cgi?id=647952
This commit is contained in:
root 2015-10-22 11:31:51 -05:00 committed by Geert Janssens
parent 21525713a3
commit 4c0dbb1748

View File

@ -673,19 +673,19 @@ gnc_tree_model_account_get_value (GtkTreeModel *tree_model,
case GNC_TREE_MODEL_ACCOUNT_COL_BALANCE:
g_value_init (value, G_TYPE_STRING);
string = gnc_ui_account_get_print_balance(xaccAccountGetBalanceInCurrency,
account, TRUE, &negative);
account, FALSE, &negative);
g_value_take_string (value, string);
break;
case GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_REPORT:
g_value_init (value, G_TYPE_STRING);
string = gnc_ui_account_get_print_report_balance(xaccAccountGetBalanceInCurrency,
account, TRUE, &negative);
account, FALSE, &negative);
g_value_take_string (value, string);
break;
case GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE:
g_value_init (value, G_TYPE_STRING);
string = gnc_ui_account_get_print_balance(xaccAccountGetBalanceInCurrency,
account, TRUE, &negative);
account, FALSE, &negative);
gnc_tree_model_account_set_color(model, negative, value);
g_free(string);
break;