Fix LTM settings not getting updated properly

This commit is contained in:
Brian Bergstrand
2016-01-05 23:23:37 -06:00
parent c9abed9e03
commit bf8ecdbc47

View File

@@ -1226,7 +1226,7 @@ LTMPlot::setData(LTMSettings *set)
// make start date always fall on a Monday
if (settings->groupBy == LTM_WEEK) {
int dow = settings->start.date().dayOfWeek(); // 1-7, where 1=monday
settings->start.date().addDays(dow-1*-1);
settings->start = QDateTime(settings->start.date().addDays(dow-1*-1));
}
// setup the xaxis at the bottom