r13921 - gnucash/trunk/src/engine - Move some gains-related
transaction-scrubbing operations to from
Chris Shoemaker
chris at cvs.gnucash.org
Thu May 4 20:40:17 EDT 2006
Author: chris
Date: 2006-05-04 20:40:15 -0400 (Thu, 04 May 2006)
New Revision: 13921
Trac: http://svn.gnucash.org/trac/changeset/13921
Modified:
gnucash/trunk/src/engine/Scrub.c
gnucash/trunk/src/engine/Transaction.c
gnucash/trunk/src/engine/Transaction.h
gnucash/trunk/src/engine/cap-gains.c
gnucash/trunk/src/engine/cap-gains.h
Log:
Move some gains-related transaction-scrubbing operations to from
cap-gains.c to Transaction.c.
Fix a logic error where "split->gains |= ~GAINS_STATUS_ADIRTY" was supposed
to be "split->gains &= ~GAINS_STATUS_ADIRTY".
Disable the loop-restart code in xaccTransScrubGainsDate() because I think
the state changes inside the loop will never cause a previously-skipped
Split to be not skipped during another pass.
Incidental:
make both xaccTransFindSplitByAccount() arguments 'const'
Internalize Begin/Commit edit block into xaccTransScrubSplits()
More information about the gnucash-patches
mailing list