diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index e4652fb52..4de28a48b 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -1412,7 +1412,7 @@ int VLayoutPiece::EdgeByPoint(const QVector &path, const QPointF &p1) c [&p1](const auto &point){ return VFuzzyComparePoints(point, p1); }); if (posIter != points.cend()) { - return posIter - points.cbegin() + 1; + return static_cast(posIter - points.cbegin() + 1); } return 0; // Did not find edge }