From 24c92f3df5bf939c1ed32683c87783c0891adde7 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 25 Apr 2017 11:54:09 -0300 Subject: [PATCH] Crop style was not removing the box from canvas viewer --- invesalius/data/styles.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index bd60d20..a4363a4 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -1830,10 +1830,7 @@ class CropMaskInteractorStyle(DefaultInteractorStyle): #Publisher.sendMessage('Reload actual slice') def CleanUp(self): - - for draw in self.viewer.canvas.draw_list: - self.viewer.canvas.draw_list.remove(draw) - + self.viewer.canvas.draw_list.remove(self.draw_retangle) Publisher.sendMessage('Redraw canvas') def CropMask(self, pubsub_evt): -- libgit2 0.21.2