Skip to content

Commit

Permalink
Cast float to int for slider
Browse files Browse the repository at this point in the history
Signed-off-by: Chaichontat Sriworarat <[email protected]>
  • Loading branch information
chaichontat committed Apr 12, 2022
1 parent 06df602 commit 5080908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellpose/gui/guiparts.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,8 @@ def paintEvent(self, event):
else:
opt.activeSubControls = self.hover_control

opt.sliderPosition = value
opt.sliderValue = value
opt.sliderPosition = int(value)
opt.sliderValue = int(value)
style.drawComplexControl(QStyle.CC_Slider, opt, painter, self)


Expand Down

0 comments on commit 5080908

Please sign in to comment.