Skip to content

Commit

Permalink
[#153] fixing automatic setting of start/stop needle
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1com committed May 12, 2017
1 parent 9e4ed5f commit b0250f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ayab/plugins/ayab_plugin/ayab_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0250f9

Please sign in to comment.