qt: cast QPainterPath::element to QPointF in QSGRoundedRectangularImageNode

This commit is contained in:
Fatih Uzunoglu 2024-03-10 20:02:11 +02:00 committed by Jean-Baptiste Kempf
parent c7b06f38da
commit af677147ae
1 changed files with 2 additions and 2 deletions

View File

@ -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<QPointF>(painterPath.elementAt((i % 2) ? (i)
: (elementCount - i - 1))) / extrapolationFactor;
}
paths.insert(key, new QVector<QPointF>(*path));