mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdReportDay: Migrated to Range::open for readability
This commit is contained in:
parent
e9eb896577
commit
dc73007fd1
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ static void renderInterval (
|
|||
return;
|
||||
|
||||
Interval clipped = clip (track, day_range);
|
||||
if (! track.range.ended ())
|
||||
if (track.range.open ())
|
||||
clipped.range.end = Datetime ();
|
||||
|
||||
auto start_mins = clipped.range.start.hour () * 60 + clipped.range.start.minute ();
|
||||
|
@ -250,7 +250,7 @@ static void renderInterval (
|
|||
|
||||
// An open interval gets a "..." in the bottom right corner, or
|
||||
// whatever fits.
|
||||
if (! track.range.ended ())
|
||||
if (track.range.open ())
|
||||
line2.add ("+", start_offset + width - 1, colorTrack);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue