diff --git a/ayab/plugins/ayab_plugin/ayab_control.py b/ayab/plugins/ayab_plugin/ayab_control.py index 75c59bd6..0b50ccec 100644 --- a/ayab/plugins/ayab_plugin/ayab_control.py +++ b/ayab/plugins/ayab_plugin/ayab_control.py @@ -148,7 +148,7 @@ def __emit_alignment(self): def slotSetImageDimensions(self, width, height): """Called by Main UI on loading of an image to set Start/Stop needle to image width. Updates the maximum value of the Start Line UI element""" - right_side = width/2 + right_side = int(width/2) self.options_ui.start_needle_edit.setValue(width - right_side) self.options_ui.stop_needle_edit.setValue(right_side) self.options_ui.start_line_edit.setMaximum(height)