Skip to content

Commit cf08de1

Browse files
Fix qrectf to qrect cast in drawBackground
1 parent 37e5797 commit cf08de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/painter.py

+1-1
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)