Cast back to float from decimal for cursor y-increment

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-20 21:22:21 -04:00
parent 4b57235bd0
commit 068f5d8eab
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ class Cursor(pg.GraphicsObject):
# value used for rounding y-axis discreet tick steps # value used for rounding y-axis discreet tick steps
# computing once, up front, here cuz why not # computing once, up front, here cuz why not
self._y_incr_mult = 1 / self.linked._symbol.tick_size self._y_incr_mult = float(1 / self.linked._symbol.tick_size)
# line width in view coordinates # line width in view coordinates
self._lw = self.pixelWidth() * self.lines_pen.width() self._lw = self.pixelWidth() * self.lines_pen.width()