Skip to content

Commit 9a3403d

Browse files
committed
QwtPlotCurve: sticks were not drawn correctly depending on orientation (following recent changes)
1 parent e726a4c commit 9a3403d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qwt/plot_curve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,9 @@ def drawSticks(self, painter, xMap, yMap, canvasRect, from_, to):
520520
xi = xMap.transform(sample.x())
521521
yi = yMap.transform(sample.y())
522522
if o == Qt.Horizontal:
523-
painter.drawLine(x0, yi, xi, yi)
524-
else:
525523
painter.drawLine(xi, y0, xi, yi)
524+
else:
525+
painter.drawLine(x0, yi, xi, yi)
526526
painter.restore()
527527

528528
def drawDots(self, painter, xMap, yMap, canvasRect, from_, to):

0 commit comments

Comments
 (0)