r18065 - gnucash/trunk/src/gnome-utils - Bug #478106: Add sanity check to currency exchange dialog.
Charles Day
cedayiv at code.gnucash.org
Fri May 1 19:04:27 EDT 2009
Author: cedayiv
Date: 2009-05-01 19:04:27 -0400 (Fri, 01 May 2009)
New Revision: 18065
Trac: http://svn.gnucash.org/trac/changeset/18065
Modified:
gnucash/trunk/src/gnome-utils/dialog-transfer.c
Log:
Bug #478106: Add sanity check to currency exchange dialog.
Modified: gnucash/trunk/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-transfer.c 2009-05-01 22:54:53 UTC (rev 18064)
+++ gnucash/trunk/src/gnome-utils/dialog-transfer.c 2009-05-01 23:04:27 UTC (rev 18065)
@@ -2144,6 +2144,8 @@
gnc_commodity *txn_cur = xaccTransGetCurrency(txn);
gnc_commodity *reg_com = xaccAccountGetCommodity(reg_acc);
+ g_return_val_if_fail(txn_cur, TRUE);
+
/* We know that "amount" is always in the reg_com currency.
* Unfortunately it is possible that neither xfer_com or txn_cur are
* the same as reg_com, in which case we need to convert to the txn
More information about the gnucash-changes
mailing list