mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Handle interaction between complete-through and from.
This commit is contained in:
11
src/dorem.c
11
src/dorem.c
@@ -35,6 +35,17 @@ static int ComputeTrigDuration(TimeTrig const *t);
|
||||
int
|
||||
get_scanfrom(Trigger *t)
|
||||
{
|
||||
if (t->is_todo && t->from != NO_DATE) {
|
||||
if (t->complete_through != NO_DATE) {
|
||||
if (t->complete_through+1 > t->from) {
|
||||
return t->complete_through+1;
|
||||
} else {
|
||||
return t->from;
|
||||
}
|
||||
} else {
|
||||
return t->from;
|
||||
}
|
||||
}
|
||||
if (t->scanfrom != NO_DATE) {
|
||||
if (t->complete_through != NO_DATE) {
|
||||
if (t->complete_through+1 > t->scanfrom) {
|
||||
|
||||
Reference in New Issue
Block a user