Skip to content

Commit

Permalink
qtvcp -probe routines: fix history status
Browse files Browse the repository at this point in the history
history data was not displayed right
  • Loading branch information
c-morley committed Jul 28, 2024
1 parent 9fdd28c commit ae48472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qtvcp/widgets/probe_routines.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def add_history(self, *args):
tpl = '%.3f' if STATUS.is_metric_mode() else '%.4f'
c = args[0]
list = ['Xm', 'Xc', 'Xp', 'Lx', 'Ym', 'Yc', 'Yp', 'Ly', 'Z', 'D', 'A']
for i in range(1,len(list)):
for i in range(0,len(list)):
if list[i] in args[1]:
c += ' ' + list[i] + "[" + tpl%(args[i+1]) + ']'
c += ' ' + list[i] + "[" + tpl%(args[i+2]) + ']'
self.history_log = c
else:
# should be a single string
Expand Down

0 comments on commit ae48472

Please sign in to comment.