mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Preserved open intervals on add
This commit is contained in:
parent
2d18970d18
commit
c848aa268a
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ void Database::addInterval (const Interval& interval)
|
|||
// Intersect the original interval range, and the segment.
|
||||
Interval segmentedInterval (interval);
|
||||
segmentedInterval.range (intervalRange.intersect (segment));
|
||||
if (! interval.isEnded ())
|
||||
segmentedInterval.end ({0});
|
||||
|
||||
_files[df].addInterval (segmentedInterval);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue