Skip to content

Commit 9b4466d

Browse files
committed
qtvcp -cam align panel: fix setting x and y scaling
we weren't actually setting the camview object.
1 parent 0cd9343 commit 9b4466d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

share/qtvcp/panels/cam_align/cam_align_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ def initialized__(self):
9191
# X axis scale number to use
9292
elif 'xscale=' in self.w.USEROPTIONS_[num]:
9393
try:
94-
self.scaleX = float(self.w.USEROPTIONS_[num].strip('xscale='))
94+
self.w.camview.scaleX = float(self.w.USEROPTIONS_[num].strip('xscale='))
9595
except Exception as e:
9696
print('Error with cam_align X axis scale - not a number - using 1.0')
9797

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

0 commit comments

Comments
 (0)