From 7b1b9c9238cbf826981d3859a3814b043b20e766 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Fri, 8 May 2015 15:41:07 -0300 Subject: [PATCH] fixed problem with cursor showing in the wrong position when enter on watershed --- invesalius/data/styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index d67a6f6..5f30f2c 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -916,6 +916,7 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): Publisher.subscribe(self.set_bformat, 'Set watershed brush format') self._set_cursor() + self.viewer.slice_data.cursor.Show(0) def SetUp(self): mask = self.viewer.slice_.current_mask.matrix @@ -963,7 +964,6 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): cursor.SetColour(self.viewer._brush_cursor_colour) cursor.SetSize(self.config.cursor_size) self.viewer.slice_data.SetCursor(cursor) - self.viewer.interactor.Render() def set_bsize(self, pubsub_evt): size = pubsub_evt.data -- libgit2 0.21.2