mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: flatten should not leave open intervals unflattened
This commit is contained in:
parent
e910506073
commit
57ff5b282a
1 changed files with 9 additions and 16 deletions
|
@ -380,12 +380,6 @@ std::vector <Interval> flatten (
|
||||||
{
|
{
|
||||||
std::vector <Interval> all;
|
std::vector <Interval> all;
|
||||||
|
|
||||||
if (interval.range.is_open ())
|
|
||||||
{
|
|
||||||
all.push_back (interval);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
std::vector <Range> enclosed;
|
std::vector <Range> enclosed;
|
||||||
for (auto& e : exclusions)
|
for (auto& e : exclusions)
|
||||||
if (interval.range.encloses (e))
|
if (interval.range.encloses (e))
|
||||||
|
@ -397,7 +391,6 @@ std::vector <Interval> flatten (
|
||||||
chunk.range = result;
|
chunk.range = result;
|
||||||
all.push_back (chunk);
|
all.push_back (chunk);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
std::cout << "# results:\n";
|
std::cout << "# results:\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue