Skip to content

Commit d2f77d5

Browse files
committed
Fixed obvious bug in untested code from qwtFillBackground
This closes #50
1 parent d1b26cf commit d2f77d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/plot_canvas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def qwtFillBackground(*args):
281281
clipRegion = widget.contentsRect()
282282
bgWidget = qwtBackgroundWidget(widget.parentWidget())
283283
for fillRect in fillRects:
284-
rect = fillRect.toAlignedRect()
284+
rect = QRectF(fillRect).toAlignedRect()
285285
if clipRegion.intersects(rect):
286286
pm = QPixmap(rect.size())
287287
QwtPainter.fillPixmap(bgWidget, pm, widget.mapTo(bgWidget, rect.topLeft()))

0 commit comments

Comments
 (0)