aboutsummaryrefslogtreecommitdiff
path: root/src/stepCounter/StepCounterPreview.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/stepCounter/StepCounterPreview.qml')
-rw-r--r--src/stepCounter/StepCounterPreview.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stepCounter/StepCounterPreview.qml b/src/stepCounter/StepCounterPreview.qml
index 89f87fd..9042dd7 100644
--- a/src/stepCounter/StepCounterPreview.qml
+++ b/src/stepCounter/StepCounterPreview.qml
@@ -85,7 +85,7 @@ MouseArea {
indicatorLineHeight: loggerSettings.stepGoalEnabled ? loggerSettings.stepGoalTarget : 0
onBarClicked: (index)=> {
var d = new Date()
- d.setDate(d.getDate() - 6 + index)
+ d.setDate(d.getDate() - valuesArr.length + 1 + index)
pageStack.push(detailPage,{"currentDay": d})
}
}