mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
c1094b28f4
commit
b051cd199b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user