Skip to content

Commit

Permalink
rideFileCacheMeanmax just fix first date.
Browse files Browse the repository at this point in the history
  • Loading branch information
liversedge committed Dec 24, 2017
1 parent 2d845d0 commit b1e0a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Python/SIP/Bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ Bindings::rideFileCacheMeanmax(RideFileCache* cache) const
for(int j=0; j<dates.count(); j++) {

// make sure its a valid date
if (!dates[j].year() || !dates[j].month() || dates[j].day()) dates[j] = QDate::currentDate();
if (j==0) dates[j] = QDate::currentDate();
PyList_SET_ITEM(datelist, j, PyDate_FromDate(dates[j].year(), dates[j].month(), dates[j].day()));
}

Expand Down

0 comments on commit b1e0a56

Please sign in to comment.