Commit 9fb87ccd702b390a4f287461b6f2a4fa26be9bb0

Authored by Paulo Henrique Junqueira Amorim
1 parent 1e5b55c8

FIX: Clear dictionary with points edited if changed threshold

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
invesalius/data/slice_.py
@@ -75,6 +75,7 @@ class Slice(object): @@ -75,6 +75,7 @@ class Slice(object):
75 def __set_current_mask_threshold(self, evt_pubsub): 75 def __set_current_mask_threshold(self, evt_pubsub):
76 threshold_range = evt_pubsub.data 76 threshold_range = evt_pubsub.data
77 index = self.current_mask.index 77 index = self.current_mask.index
  78 + self.current_mask.edited_points = {}
78 self.SetMaskThreshold(index, threshold_range) 79 self.SetMaskThreshold(index, threshold_range)
79 80
80 def __set_current_mask_colour(self, pubsub_evt): 81 def __set_current_mask_colour(self, pubsub_evt):