Fix for "Use accounting labels"

Matt Armstrong matt@lickey.com
Thu, 18 Jul 2002 00:36:21 -0600


Okay, this time the patch in raw text.  No MIME = no MIME defang problems!

The "Use accounting labels" user preference currently does not work in
CVS.  I've filed http://bugzilla.gnome.org/show_bug.cgi?id=88053 but
also found and fixed the bug as shown below.

--- ./ChangeLog	Thu Jul 18 00:02:13 2002
+++ ./ChangeLog	Wed Jul 17 23:51:30 2002
@@ -1,3 +1,9 @@
+2002-07-17  Matt Armstrong  <matt@lickey.com>
+
+	* src/app-utils/guile-util.c (gnc_get_debit_string): Look for "Use
+	accounting labels" option is under the "Accounts" section.
+	(gnc_get_credit_string): ditto.
+
 2002-07-11  Derek Atkins  <derek@ihtfp.com>
 
 	* change gncEntry->account into gncEntry->invAccount and
diff -up 'tmp/gnucash/src/app-utils/guile-util.c' 'gnucash/src/app-utils/guile-util.c'
Index: ./src/app-utils/guile-util.c
--- ./src/app-utils/guile-util.c	Thu Jul 18 00:03:00 2002
+++ ./src/app-utils/guile-util.c	Wed Jul 17 23:51:24 2002
@@ -1108,7 +1108,7 @@ gnc_get_debit_string(GNCAccountType acco
 
   initialize_scm_functions();
 
-  if (gnc_lookup_boolean_option("General", "Use accounting labels", FALSE))
+  if (gnc_lookup_boolean_option("Accounts", "Use accounting labels", FALSE))
     return g_strdup(_("Debit"));
 
   if ((account_type < NO_TYPE) || (account_type >= NUM_ACCOUNT_TYPES))
@@ -1154,7 +1154,7 @@ gnc_get_credit_string(GNCAccountType acc
 
   initialize_scm_functions();
 
-  if (gnc_lookup_boolean_option("General", "Use accounting labels", FALSE))
+  if (gnc_lookup_boolean_option("Accounts", "Use accounting labels", FALSE))
     return g_strdup(_("Credit"));
 
   if ((account_type < NO_TYPE) || (account_type >= NUM_ACCOUNT_TYPES))