Switch core SX instance generation from FreqSpec to Recurrence.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15605 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2007-02-18 20:23:11 +00:00
parent 493504179c
commit 348e8a85a3

View File

@ -502,7 +502,7 @@ xaccSchedXactionGetNextInstance( SchedXaction *sx, void *stateData )
}
}
xaccFreqSpecGetNextInstance( sx->freq, &last_occur, &next_occur );
recurrenceListNextInstance(sx->schedule, &last_occur, &next_occur);
/* out-of-bounds check */
if ( xaccSchedXactionHasEndDate( sx ) ) {
@ -551,7 +551,7 @@ xaccSchedXactionGetInstanceAfter( SchedXaction *sx,
g_date_subtract_days( &prev_occur, 1 );
}
xaccFreqSpecGetNextInstance( sx->freq, &prev_occur, &next_occur );
recurrenceListNextInstance(sx->schedule, &prev_occur, &next_occur);
if ( xaccSchedXactionHasEndDate( sx ) ) {
GDate *end_date;