Follow up on bug #650598 - Cannot Enter Nth Day of Month Scheduled

Transactions

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20742 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-06-09 15:17:16 +00:00
parent f311fe5fd2
commit 7d9110937c

View File

@ -273,7 +273,8 @@ recurrenceNextInstance(const Recurrence *r, const GDate *ref, GDate *next)
else if ( g_date_is_last_of_month(next) ||
((pt == PERIOD_MONTH || pt == PERIOD_YEAR) &&
g_date_get_day(next) >= g_date_get_day(start)) ||
((pt == PERIOD_NTH_WEEKDAY || pt == PERIOD_LAST_WEEKDAY)) )
((pt == PERIOD_NTH_WEEKDAY || pt == PERIOD_LAST_WEEKDAY) &&
nth_weekday_compare(start, next, pt) <= 0) )
g_date_add_months(next, mult);
else
/* one fewer month fwd because of the occurrence in this month */