Skip to content

Commit

Permalink
Fixing bug where wrong index of array taken during timezone replot
Browse files Browse the repository at this point in the history
  • Loading branch information
zcobell committed Jun 29, 2019
1 parent ca72abd commit e5c5387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetOceanViewer/src/usgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ int Usgs::replotChart(Timezone *newTimezone) {
this->m_allStationData->station(0)->date(0), Qt::UTC);
QDateTime maxDateTime = QDateTime::fromMSecsSinceEpoch(
this->m_allStationData->station(0)->date(
this->m_allStationData->station(0)->numSnaps()),
this->m_allStationData->station(0)->numSnaps() - 1),
Qt::UTC);

minDateTime =
Expand Down

0 comments on commit e5c5387

Please sign in to comment.