mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: getTrackedIntervals should only use outerRange if it is non-trivial
This commit is contained in:
parent
321d0b8ab2
commit
3ae88e9383
1 changed files with 6 additions and 1 deletions
|
@ -599,8 +599,13 @@ std::vector <Interval> getTrackedIntervals (
|
||||||
//
|
//
|
||||||
// [earliest start, latest end)
|
// [earliest start, latest end)
|
||||||
//
|
//
|
||||||
|
// Avoid assigning a zero-width range - leave it unstarted instead.
|
||||||
if (! filter.range.started ())
|
if (! filter.range.started ())
|
||||||
filter.range = outerRange (inclusions);
|
{
|
||||||
|
auto outer = outerRange (inclusions);
|
||||||
|
if (outer.total ())
|
||||||
|
filter.range = outer;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the set of expanded exclusions that overlap the range defined by the
|
// Get the set of expanded exclusions that overlap the range defined by the
|
||||||
// timeline. If no range is defined, derive it from the set of all data.
|
// timeline. If no range is defined, derive it from the set of all data.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue