Christian Stimming's patch for editing currency registers.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2898 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-09-19 01:26:57 +00:00
parent dee554f5fb
commit 6e77965877

View File

@ -2667,11 +2667,13 @@ xaccSRSaveChangedCells (SplitRegister *reg, Transaction *trans, Split *split)
const char *security = NULL; const char *security = NULL;
currency = xaccAccountGetCurrency(new_acc); currency = xaccAccountGetCurrency(new_acc);
currency = xaccTransIsCommonExclSCurrency(trans, currency, split); currency = xaccTransIsCommonExclSCurrency(trans,
currency, other_split);
if (currency == NULL) { if (currency == NULL) {
security = xaccAccountGetSecurity(new_acc); security = xaccAccountGetSecurity(new_acc);
security = xaccTransIsCommonExclSCurrency(trans, security, split); security = xaccTransIsCommonExclSCurrency(trans,
security, other_split);
} }
if ((currency != NULL) || (security != NULL)) { if ((currency != NULL) || (security != NULL)) {