summaryrefslogtreecommitdiff
path: root/qmlplugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--qmlplugin/weightDataLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmlplugin/weightDataLoader.cpp b/qmlplugin/weightDataLoader.cpp
index 7dc7c6b..0687fa8 100644
--- a/qmlplugin/weightDataLoader.cpp
+++ b/qmlplugin/weightDataLoader.cpp
@@ -50,7 +50,7 @@ QList<QPointF> WeightDataLoader::getRawDataForDate(QDate date) {
line = inStream.readLine();
QPointF point;
point.setX(line.split(":")[0].toInt());
- point.setY(line.split(":")[1].toInt());
+ point.setY(line.split(":")[1].toFloat());
m_filedata.append(point);
}
file.close();