Skip to content

Commit f7d72d4

Browse files
committed
fixed another python3.11 float int crash
1 parent 82e582b commit f7d72d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NanoVNASaver/Charts/SParam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def drawValues(self, qp: QtGui.QPainter):
8282
tick_count = self.dim.height // 60
8383
tick_step = self.span / tick_count
8484
for i in range(tick_count):
85-
val = minValue + i * tick_step
85+
val = int(minValue + i * tick_step)
8686
y = self.topMargin + (maxValue - val) // span * self.dim.height
8787
qp.setPen(QtGui.QPen(Chart.color.foreground))
8888
qp.drawLine(self.leftMargin - 5, y,

0 commit comments

Comments
 (0)