CmdChart: Fixed bug that miscalculated the last hour to show on the chart

This commit is contained in:
Paul Beckingham 2016-06-10 22:04:24 -04:00
parent c35f40781c
commit f8562d1d89

View file

@ -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 ();
}