Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Sep 10, 2024
1 parent 70e160b commit cfb0b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plotpy/items/shape/polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ def draw(
if self.ADDITIONNAL_POINTS:
# Slice indexing is not supported by PySide6, so we convert the `QPolygonF`
# object to a list before converting it back to a `QPolygonF` object:
shape_points = QG.QPolygonF(list(points[: -self.ADDITIONNAL_POINTS]))
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 :])
else:
shape_points = points
other_points = []
Expand Down

0 comments on commit cfb0b2f

Please sign in to comment.