We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70e160b commit cfb0b2fCopy full SHA for cfb0b2f
plotpy/items/shape/polygon.py
@@ -278,8 +278,8 @@ def draw(
278
if self.ADDITIONNAL_POINTS:
279
# Slice indexing is not supported by PySide6, so we convert the `QPolygonF`
280
# object to a list before converting it back to a `QPolygonF` object:
281
- shape_points = QG.QPolygonF(list(points[: -self.ADDITIONNAL_POINTS]))
282
- other_points = QG.QPolygonF(list(points[-self.ADDITIONNAL_POINTS :]))
+ shape_points = QG.QPolygonF(list(points)[: -self.ADDITIONNAL_POINTS])
+ other_points = QG.QPolygonF(list(points)[-self.ADDITIONNAL_POINTS :])
283
else:
284
shape_points = points
285
other_points = []
0 commit comments