mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdChart: Fixed bug that miscalculated the last hour to show on the chart
This commit is contained in:
parent
c35f40781c
commit
f8562d1d89
1 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,8 @@ static void determineHourRange (
|
|||
if (track.range.start.hour () < first_hour)
|
||||
first_hour = track.range.start.hour ();
|
||||
|
||||
if (track.range.end.hour () > last_hour)
|
||||
if (! track.range.is_open () &&
|
||||
track.range.end.hour () > last_hour)
|
||||
last_hour = track.range.end.hour ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue