Skip to content

Commit 8bd9ad3

Browse files
committed
Fixed IndexError with rounded frame and legacy design
1 parent 45c472f commit 8bd9ad3

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
@@ -261,7 +261,7 @@ def drawRoundedFrame(
261261
c2 = QColor(palette.color(QPalette.Light))
262262
if style == Raised:
263263
c1, c2 = c2, c1
264-
for i in range(5):
264+
for i in range(4):
265265
r = pathList[2 * i].controlPointRect()
266266
arcPen = QPen()
267267
arcPen.setCapStyle(Qt.FlatCap)

0 commit comments

Comments
 (0)