After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 412442 - Register shows negative amounts in red when it shouldn't
Register shows negative amounts in red when it shouldn't
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Register
git-master
Other All
: Normal minor
: ---
Assigned To: David Hampton
Chris Shoemaker
Depends on:
Blocks:
 
 
Reported: 2007-02-26 22:17 UTC by Mike Alexander
Modified: 2018-06-29 21:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to get the initial value of the negative is red option (623 bytes, patch)
2007-02-26 22:19 UTC, Mike Alexander
committed Details | Review

Description Mike Alexander 2007-02-26 22:17:16 UTC
If the "Display negative amounts in red" option is off when GnuCash starts up, registers still show negative amounts in red until the option is changed.  To see what I mean, run GnuCash, turn this option off, and exit GnuCash.  Then start it up again and (without touching the preferences dialog) open a register for an account that has negative balances.  The negative balances will be red even though the option is off.

The problem is that the one time initialization code in split-register-model.c fails to get the current value for KEY_NEGATIVE_IN_RED when it registers the call back for changes in this key.  I'll attach a patch to fix this.
Comment 1 Mike Alexander 2007-02-26 22:19:11 UTC
Created attachment 83432 [details] [review]
Patch to get the initial value of the negative is red option
Comment 2 Josh Sled 2007-02-27 02:57:04 UTC
trunk/@15671.  Thanks for the patch!
Comment 3 John Ralls 2018-06-29 21:28:05 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=412442. Please update any external references or bookmarks.