gnucash maint: Minor improvement to information provided about TXF categories in the Income Tax Information dialog under Edit->Tax Report Options.
J. Alex Aycinena
alex.aycinena at code.gnucash.org
Thu Jan 7 18:18:33 EST 2016
Updated via https://github.com/Gnucash/gnucash/commit/3779eb64 (commit)
from https://github.com/Gnucash/gnucash/commit/9895e559 (commit)
commit 3779eb64a9c2a8765db1c3beace381cdb728e4e3
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date: Thu Jan 7 15:10:12 2016 -0800
Minor improvement to information provided about TXF categories in the Income Tax Information dialog under Edit->Tax Report Options.
diff --git a/src/gnome/dialog-tax-info.c b/src/gnome/dialog-tax-info.c
index 96338fd..8b5904f 100644
--- a/src/gnome/dialog-tax-info.c
+++ b/src/gnome/dialog-tax-info.c
@@ -383,7 +383,10 @@ load_txf_info (gint acct_category, TaxInfoDialog *ti_dialog)
line = g_strdup ("");
temp2 = g_strdup_printf ("%d", line_year);
temp = g_strconcat (form_line_data, "\n", temp2, " - ",
- until, " ", line, NULL);
+ ((year != 0) && (until == now))
+ ? g_strdup_printf("%d", year)
+ : until,
+ " ", line, NULL);
if (until != now)
g_free (until);
until = g_strdup_printf ("%d", (line_year - 1));
Summary of changes:
src/gnome/dialog-tax-info.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list