r23057 - gnucash/trunk/src/gnome-utils - Register2: Improve commodity/currency handling: Try to always use account_or_default_currency lookup instead of code duplication.

Christian Stimming cstim at code.gnucash.org
Wed Jun 19 11:47:50 EDT 2013


Author: cstim
Date: 2013-06-19 11:47:49 -0400 (Wed, 19 Jun 2013)
New Revision: 23057
Trac: http://svn.gnucash.org/trac/changeset/23057

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c
Log:
Register2: Improve commodity/currency handling: Try to always use account_or_default_currency lookup instead of code duplication.

The code for ensuring a commodity that is a currency was duplicated among
the file. This is now refactored into the reg_currency variable. Also, in
a non-currency register the currency is now taken from parent accounts or
the default currency, which matches the old register's policy but is different
from what register2 previously did.



More information about the gnucash-patches mailing list