mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: getTracked now detects synthetic intervals
This commit is contained in:
parent
d535ffb4e5
commit
40e95ca65b
1 changed files with 6 additions and 0 deletions
|
@ -664,8 +664,14 @@ std::vector <Interval> getTracked (
|
||||||
{
|
{
|
||||||
for (auto& inclusion : inclusions)
|
for (auto& inclusion : inclusions)
|
||||||
for (auto& interval : flatten (inclusion, exclusions))
|
for (auto& interval : flatten (inclusion, exclusions))
|
||||||
|
{
|
||||||
|
if (inclusion.synthetic ||
|
||||||
|
inclusion.range != interval.range)
|
||||||
|
interval.synthetic = true;
|
||||||
|
|
||||||
intervals.push_back (interval);
|
intervals.push_back (interval);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
intervals = inclusions;
|
intervals = inclusions;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue