mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Use functions is_started()
and is_ended()
instead of querying start
/end
directly
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
4637cd3d4e
commit
07a6dfe313
1 changed files with 1 additions and 3 deletions
|
@ -403,9 +403,7 @@ std::vector <Range> subtractRanges (
|
|||
// An interval matches a filter range if the start/end overlaps
|
||||
bool matchesRange (const Interval& interval, const Range& filter)
|
||||
{
|
||||
return ((filter.start.toEpoch () == 0 &&
|
||||
filter.end.toEpoch () == 0
|
||||
) || interval.intersects (filter));
|
||||
return ((!filter.is_started() && !filter.is_ended()) || interval.intersects (filter));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue