Commit cb598e8ea4eee7862e65845ba81293ea382d76aa

Authored by Paulo Henrique Junqueira Amorim
1 parent 875c9754

FIX: Case edit mask and change threshold, is created the surface edited, not threshold some

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
invesalius/data/slice_.py
... ... @@ -59,9 +59,6 @@ class Slice(object):
59 59 def __set_current_mask_threshold_limits(self, pubsub_evt):
60 60 thresh_min = pubsub_evt.data[0]
61 61 thresh_max = pubsub_evt.data[1]
62   - print "***********"
63   - print thresh_min, thresh_max
64   - print "***********"
65 62 if self.current_mask:
66 63 index = self.current_mask.index
67 64 self.SetMaskEditionThreshold(index, (thresh_min, thresh_max))
... ... @@ -94,6 +91,8 @@ class Slice(object):
94 91 threshold_range = evt_pubsub.data
95 92 index = self.current_mask.index
96 93 self.SetMaskThreshold(index, threshold_range)
  94 + #Clear edited points
  95 + self.current_mask.edited_points = {}
97 96  
98 97 def __set_current_mask_colour(self, pubsub_evt):
99 98 # "if" is necessary because wx events are calling this before any mask
... ...