diff --git a/src/libs/vtest/abstracttest.cpp b/src/libs/vtest/abstracttest.cpp index ef1b12594..7f4926f99 100644 --- a/src/libs/vtest/abstracttest.cpp +++ b/src/libs/vtest/abstracttest.cpp @@ -270,7 +270,8 @@ void AbstractTest::VectorFromJson(const QString &json, QVector &vector QJsonValue angleValue = pointObject[angleKey]; if (angleValue.isDouble()) { - point.SetAngleType(static_cast(angleValue.toDouble(defaultAngle))); + const int angle = static_cast(angleValue.toDouble(defaultAngle)); + point.SetAngleType(static_cast(angle)); } else {