mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
helper: Fixed bug that ignored open intervals
This commit is contained in:
parent
218780518c
commit
0fa7e32182
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,6 @@
|
||||||
#include <Duration.h>
|
#include <Duration.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream> // TODO Remove.
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -344,7 +343,8 @@ bool intervalMatchesFilterInterval (const Interval& interval, const Interval& fi
|
||||||
|
|
||||||
||
|
||
|
||||||
|
|
||||||
(interval.range.end > filter.range.start &&
|
((interval.range.end.toEpoch () == 0 ||
|
||||||
|
interval.range.end > filter.range.start) &&
|
||||||
interval.range.start < filter.range.end))
|
interval.range.start < filter.range.end))
|
||||||
{
|
{
|
||||||
for (auto& tag : filter.tags ())
|
for (auto& tag : filter.tags ())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue