Skip to content

Commit 052c07f

Browse files
committed
Fixed QwtPainter.drawColorBar for horizontal color bars (typo)
1 parent 4e18ce2 commit 052c07f

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
@@ -692,7 +692,7 @@ def drawColorBar(self, painter, colorMap, interval, scaleMap,
692692
else:
693693
c = colorTable[colorMap.colorIndex(interval, value)]
694694
pmPainter.setPen(c)
695-
pmPainter.drawLine(x, devRect.top(), devRect.bottom())
695+
pmPainter.drawLine(x, devRect.top(), x, devRect.bottom())
696696
else:
697697
sMap = scaleMap
698698
sMap.setPaintInterval(rect.bottom(), rect.top())

0 commit comments

Comments
 (0)