diff --git a/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp b/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp index 0abedaf6f8..ccb60a836d 100644 --- a/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp +++ b/modules/gui/qt/util/qsgroundedrectangularimagenode.cpp @@ -205,8 +205,8 @@ QSGGeometry* QSGRoundedRectangularImageNode::rebuildGeometry(const Shape& shape, || painterPath.elementAt(i).type == QPainterPath::ElementType::LineToElement); // Symmetry based triangulation based on ordered painter path. - (*path)[i] = (painterPath.elementAt((i % 2) ? (i) - : (elementCount - i - 1))) / extrapolationFactor; + (*path)[i] = static_cast(painterPath.elementAt((i % 2) ? (i) + : (elementCount - i - 1))) / extrapolationFactor; } paths.insert(key, new QVector(*path));