clarify currency change

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9247 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-09-06 14:53:58 +00:00
parent c1094b28f4
commit b051cd199b

View File

@ -656,7 +656,10 @@ xaccSplitComputeCapGains(Split *split, Account *gain_acc)
/* Make sure the existing gains trans has the correct currency,
* just in case someone screwed with it! */
xaccTransSetCurrency (trans, currency);
if (FALSE == gnc_commodity_equiv(currency,trans->common_currency))
{
xaccTransSetCurrency (trans, currency);
}
}
/* Common to both */