mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Skip empty intervals when flattening
Closes #403 Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
4044635e08
commit
8ab44ba5e5
1 changed files with 5 additions and 0 deletions
|
@ -118,6 +118,11 @@ static bool autoAdjust (
|
|||
|
||||
for (auto& interval : flatten (latest, getAllExclusions (rules, latest)))
|
||||
{
|
||||
if (interval.is_empty ())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
database.addInterval (interval, verbose);
|
||||
|
||||
if (verbose)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue