
Property changes on: src/python
___________________________________________________________________
Added: svn:ignore
   + .deps


Index: src/engine/Recurrence.c
===================================================================
--- src/engine/Recurrence.c	(revision 20738)
+++ src/engine/Recurrence.c	(working copy)
@@ -273,7 +273,8 @@
         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 */
