mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix LTM settings not getting updated properly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user