Skip to content

Commit

Permalink
qtvcp -cam align panel: fix setting x and y scaling
Browse files Browse the repository at this point in the history
we weren't actually setting the camview object.
  • Loading branch information
c-morley committed Dec 7, 2024
1 parent 0cd9343 commit 9b4466d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/qtvcp/panels/cam_align/cam_align_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ def initialized__(self):
# X axis scale number to use
elif 'xscale=' in self.w.USEROPTIONS_[num]:
try:
self.scaleX = float(self.w.USEROPTIONS_[num].strip('xscale='))
self.w.camview.scaleX = float(self.w.USEROPTIONS_[num].strip('xscale='))
except Exception as e:
print('Error with cam_align X axis scale - not a number - using 1.0')

# camera Y axis scale number to use
elif 'yscale=' in self.w.USEROPTIONS_[num]:
try:
self.scaleY = float(self.w.USEROPTIONS_[num].strip('yscale='))
self.w.camview.scaleY = float(self.w.USEROPTIONS_[num].strip('yscale='))
except Exception as e:
print('Error with cam_align camera Y axis scale- not a number - using 1.0')

Expand Down

0 comments on commit 9b4466d

Please sign in to comment.