Restrict application of exclusions to range before now for open intervals

- Closes #370

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2020-08-18 18:58:05 +02:00
parent 26fdebf754
commit 11877d3fff

View file

@ -311,6 +311,11 @@ std::vector <Interval> flatten (
Datetime now;
for (auto& result : subtractRanges ({interval}, enclosed))
{
if (interval.is_open() && result.start > now)
{
break;
}
Interval chunk {interval};
chunk.setRange (result);