Commit 24c92f3df5bf939c1ed32683c87783c0891adde7

Authored by Thiago Franco de Moraes
1 parent 1910aaa8

Crop style was not removing the box from canvas viewer

Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
invesalius/data/styles.py
... ... @@ -1830,10 +1830,7 @@ class CropMaskInteractorStyle(DefaultInteractorStyle):
1830 1830 #Publisher.sendMessage('Reload actual slice')
1831 1831  
1832 1832 def CleanUp(self):
1833   -
1834   - for draw in self.viewer.canvas.draw_list:
1835   - self.viewer.canvas.draw_list.remove(draw)
1836   -
  1833 + self.viewer.canvas.draw_list.remove(self.draw_retangle)
1837 1834 Publisher.sendMessage('Redraw canvas')
1838 1835  
1839 1836 def CropMask(self, pubsub_evt):
... ...