Closes#500
NanoVNA-saver crashes per below when getPlotable returns a float.
getPlotable is always followed by a call to drawLine(self, int, int,
int, int), so it needs to return ints.
Cast getPlotable return values to int in all cases.
Traceback (most recent call last):
File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/Frequency.py", line 447, in paintEvent
self.drawValues(qp)
File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/VSWR.py", line 144, in drawValues
self.drawData(qp, self.data, Chart.color.sweep)
File "/home/blinken/co/nanovna-saver/NanoVNASaver/Charts/Frequency.py", line 641, in drawData
qp.drawLine(prevx, prevy, new_x, new_y)
TypeError: arguments did not match any overloaded call:
drawLine(self, QLineF): argument 1 has unexpected type 'int'
drawLine(self, QLine): argument 1 has unexpected type 'int'
drawLine(self, int, int, int, int): argument 3 has unexpected type 'numpy.float64'
drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'int'
drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'int'
Aborted