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