Skip to content

Commit 80ec6ce

Browse files
[UPDATE] fix wrong attribute name
The class Border has a rectList member, but some lines in drawRects() refered to a member attribute named list. This caused the test to fail again on PySide6, test passes now with these modifications.
1 parent 21333e9 commit 80ec6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwt/plot_canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def drawRects(self, rects, count):
7474
if QT_API.startswith("pyside"):
7575
# Pyside
7676
if isinstance(rects, (QRect, QRectF)):
77-
self.border.list = [rects]
77+
self.border.rectList = [rects]
7878
elif isinstance(rects, list):
79-
self.border.list += rects
79+
self.border.rectList += rects
8080
else:
8181
for i in range(count):
8282
self.border.rectList += [rects.getRect().index(i)]

0 commit comments

Comments
 (0)