Skip to content

Commit

Permalink
z_pos fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolgyes committed Aug 31, 2017
1 parent 4c9176b commit a3f9651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perceptionmd/widgets/Pairwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def on_z_max(self, *args, **kwargs):
self.z_pos = int(min(self.z_pos, self.z_max))

def on_z_pos(self, *args, **kwargs):
self.z_pos = max(0, int(self.z_pos))
self.z_pos = min(max(0, int(self.z_pos)),self.z_max)
self.axial_pos.text = " %s / %s " % (self.z_pos, self.z_max)
self.dcmview1.z_pos = self.z_pos
self.dcmview2.z_pos = self.z_pos
Expand Down

0 comments on commit a3f9651

Please sign in to comment.