Skip to content

Commit 835bbe8

Browse files
Fix issue with dragdroptab - convert float coords to int
QPoint no longer auto converts float arguments, resulting in an error
1 parent c38b661 commit 835bbe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labscript_utils/qtwidgets/dragdroptab.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def updateCurrentTime(self, current_time):
316316
if dy * (target_pos_y - new_pos_y) < 0:
317317
new_pos_y = target_pos_y
318318

319-
self.limbo_position = QPoint(new_pos_x, new_pos_y)
319+
self.limbo_position = QPoint(
320+
int(round(new_pos_x)), int(round(new_pos_y))
321+
)
320322
else:
321323
self.limbo.animation_over()
322324
self.limbo = None

0 commit comments

Comments
 (0)