Skip to content

Commit cfb0b2f

Browse files
committed
Fix last commit
1 parent 70e160b commit cfb0b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotpy/items/shape/polygon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def draw(
278278
if self.ADDITIONNAL_POINTS:
279279
# Slice indexing is not supported by PySide6, so we convert the `QPolygonF`
280280
# 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 :]))
281+
shape_points = QG.QPolygonF(list(points)[: -self.ADDITIONNAL_POINTS])
282+
other_points = QG.QPolygonF(list(points)[-self.ADDITIONNAL_POINTS :])
283283
else:
284284
shape_points = points
285285
other_points = []

0 commit comments

Comments
 (0)