Skip to content

Commit 038e3b3

Browse files
committed
symbol: fixed QPointF type mismatch
1 parent bf33257 commit 038e3b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qwt/symbol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def qwtDrawStar1Symbols(painter, points, numPoints, symbol):
254254
sqrt1_2 = math.sqrt(0.5)
255255
r = QRectF(0, 0, size.width(), size.height())
256256
for pos in points:
257-
r.moveCenter(pos.toPoint())
257+
r.moveCenter(pos)
258258
c = QPointF(r.center())
259259
d1 = r.width() / 2.0 * (1.0 - sqrt1_2)
260260
painter.drawLine(

0 commit comments

Comments
 (0)