r15671 - gnucash/trunk/src/register/ledger-core - Bug#412442: initialize "display negative amounts in red" option correctly. Patch from Mike Alexander <mta at umich.edu>.

Josh Sled jsled at cvs.gnucash.org
Mon Feb 26 21:56:25 EST 2007


Author: jsled
Date: 2007-02-26 21:56:23 -0500 (Mon, 26 Feb 2007)
New Revision: 15671
Trac: http://svn.gnucash.org/trac/changeset/15671

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-model.c
Log:
Bug#412442: initialize "display negative amounts in red" option correctly.  Patch from Mike Alexander <mta at umich.edu>.


Modified: gnucash/trunk/src/register/ledger-core/split-register-model.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-model.c	2007-02-26 14:09:55 UTC (rev 15670)
+++ gnucash/trunk/src/register/ledger-core/split-register-model.c	2007-02-27 02:56:23 UTC (rev 15671)
@@ -1902,6 +1902,10 @@
   gnc_gconf_general_register_cb(KEY_NEGATIVE_IN_RED,
 				gnc_split_register_colorize_negative,
 				NULL);
+  /* Get the initial value */
+  use_red_for_negative = gnc_gconf_get_bool(GCONF_GENERAL, 
+                                            KEY_NEGATIVE_IN_RED, 
+                                            NULL);
   return NULL;
 }
 



More information about the gnucash-changes mailing list