mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3549 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
86c18268f4
commit
67edb46720
@ -93,7 +93,10 @@ xaccTransactionGetBackend (Transaction *trans)
|
|||||||
|
|
||||||
/* find an account */
|
/* find an account */
|
||||||
s = xaccTransGetSplit (trans, 0);
|
s = xaccTransGetSplit (trans, 0);
|
||||||
if (!s) return NULL;
|
if (!s) {
|
||||||
|
s = xaccTransGetSplit (trans->orig, 0);
|
||||||
|
if (!s) return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* I suppose it would be more 'technically correct' to make sure that
|
/* I suppose it would be more 'technically correct' to make sure that
|
||||||
* all splits share the same backend, and flag an error if they
|
* all splits share the same backend, and flag an error if they
|
||||||
|
Loading…
Reference in New Issue
Block a user