Skip to content

Commit

Permalink
canvas/nodeitem: Fix painter state save/restore
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 30, 2017
1 parent de8dfc0 commit 934171a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/canvas/canvas/items/nodeitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def paint(self, painter, option, widget):
if self.__progress >= 0:
# Draw the progress meter over the shape.
# Set the clip to shape so the meter does not overflow the shape.
painter.save()
painter.setClipPath(self.shape(), Qt.ReplaceClip)
color = self.palette.color(QPalette.ButtonText)
pen = QPen(color, 5)
painter.save()
painter.setPen(pen)
painter.setRenderHints(QPainter.Antialiasing)
span = max(1, int(self.__progress * 57.60))
Expand Down

0 comments on commit 934171a

Please sign in to comment.