Fix weird parsing bug if you have a SKIP on an omitted day with a SATISFY.

This commit is contained in:
David F. Skoll
2007-11-05 11:37:48 -05:00
parent d43a2277da
commit a38e120e99

View File

@@ -419,6 +419,13 @@ int ComputeTrigger(int today, Trigger *trig, int *err)
}
return -1;
}
if (trig->skip == SKIP_SKIP &&
IsOmitted(result, trig->localomit) &&
result >= start) {
nextstart = result + 1;
}
/* Keep scanning... unless there's no point in doing it.*/
if (nextstart <= start) {
if (result != -1) {