r17863 - gnucash/branches/2.2/src/engine - [17850] Bug #568945: gnc_pricedb_convert_balance_* should look for the reciprocal of the exchange rate

Christian Stimming cstim at cvs.gnucash.org
Sat Jan 31 05:46:13 EST 2009


Author: cstim
Date: 2009-01-31 05:46:12 -0500 (Sat, 31 Jan 2009)
New Revision: 17863
Trac: http://svn.gnucash.org/trac/changeset/17863

Modified:
   gnucash/branches/2.2/src/engine/gnc-pricedb.c
Log:
[17850] Bug #568945: gnc_pricedb_convert_balance_* should look for the reciprocal of the exchange rate

If the price DB contains the reciprocal of the exchange rate which
gnc_pricedb_convert_balance_nearest_price,
gnc_pricedb_convert_balance_latest_price, and
gnc_pricedb_convert_balance_latest_before need to do their conversion they
don't find it and return zero.

Patch by Mike Alexander.



More information about the gnucash-patches mailing list