mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
patch based on stuff forgotten from 1.0 branch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@568 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
b45edd608e
commit
af012d802a
19
src/FileIO.c
19
src/FileIO.c
@ -785,17 +785,26 @@ readSplit ( int fd, int token )
|
||||
xaccFreeSplit (split);
|
||||
return NULL;
|
||||
}
|
||||
xaccSplitSetReconcile (split, recn);
|
||||
|
||||
if( 1 >= token ) {
|
||||
/* Note: this is for version 0 of file format only.
|
||||
* What used to be reconciled, is now cleared... transactions
|
||||
* aren't reconciled until you get your bank statement, and
|
||||
* use the reconcile window to mark the transaction reconciled
|
||||
*/
|
||||
if( YREC == recn ) recn = CREC;
|
||||
}
|
||||
|
||||
/* make sure the value of split->reconciled is valid...
|
||||
* Do this mainly in case we change what NREC and
|
||||
* YREC are defined to be... this way it might loose all
|
||||
* the reconciled data, but at least the field is valid */
|
||||
if( (YREC != split->reconciled) &&
|
||||
(FREC != split->reconciled) &&
|
||||
(CREC != split->reconciled) ) {
|
||||
xaccSplitSetReconcile (split, NREC);
|
||||
if( (YREC != recn) &&
|
||||
(FREC != recn) &&
|
||||
(CREC != recn) ) {
|
||||
recn = NREC;
|
||||
}
|
||||
xaccSplitSetReconcile (split, recn);
|
||||
|
||||
/* first, read number of shares ... */
|
||||
err = read( fd, &damount, sizeof(double) );
|
||||
|
Loading…
Reference in New Issue
Block a user