mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix rollback bug --- set copied split account to NULL before inserting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3305 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1541,10 +1541,12 @@ xaccTransRollbackEdit (Transaction *trans)
|
||||
node ; node = node->next)
|
||||
{
|
||||
Split *s = node->data;
|
||||
Account *account = s->acc;
|
||||
|
||||
s->acc = NULL;
|
||||
xaccStoreEntity(s, &s->guid, GNC_ID_SPLIT);
|
||||
xaccAccountInsertSplit (s->acc, s);
|
||||
xaccAccountRecomputeBalance (s->acc);
|
||||
xaccAccountInsertSplit (account, s);
|
||||
xaccAccountRecomputeBalance (account);
|
||||
mark_split (s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user