Skip to content

Commit a2cf1ff

Browse files
Merge pull request #99 from Adrian-B-Moreira/fix-qrectf-cast
Fix `QRectF` to `QRect` cast in `QwtPainterClass.drawBackground`
2 parents 0c15cf6 + cf08de1 commit a2cf1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/painter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def drawBackground(self, painter, rect, widget):
393393
if widget.testAttribute(Qt.WA_StyledBackground):
394394
opt = QStyleOption()
395395
opt.initFrom(widget)
396-
opt.rect = rect
396+
opt.rect = rect.toRect()
397397
widget.style().drawPrimitive(QStyle.PE_Widget, opt, painter, widget)
398398
else:
399399
brush = widget.palette().brush(widget.backgroundRole())

0 commit comments

Comments
 (0)