Skip to content

Commit

Permalink
Fix ray/draw panel error when modifying units
Browse files Browse the repository at this point in the history
Fixes #393
  • Loading branch information
JarrettSJohnson committed Aug 29, 2024
1 parent 758cec3 commit d6cb364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pmg_qt/pymol_qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ def update_pixels(*args):
width = form.input_width_units.value()
height = form.input_height_units.value()
factor = get_factor()
form.input_width.setValue(width / factor)
form.input_height.setValue(height / factor)
form.input_width.setValue(int(width / factor))
form.input_height.setValue(int(height / factor))

@lock.skipIfCircular
def update_width(*args):
Expand Down

0 comments on commit d6cb364

Please sign in to comment.