From b07a0770ae0092af974e28109d23ae4e19711aa4 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Fri, 8 May 2015 15:42:47 -0300 Subject: [PATCH] fixed problem with cursor showing in the wrong position when enter on editor --- 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 5f30f2c..0731d4d 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -591,6 +591,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): Publisher.subscribe(self.set_boperation, 'Set edition operation') self._set_cursor() + self.viewer.slice_data.cursor.Show(0) def CleanUp(self): Publisher.unsubscribe(self.set_bsize, 'Set edition brush size') @@ -626,7 +627,6 @@ class EditorInteractorStyle(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 OnEnterInteractor(self, obj, evt): if (self.viewer.slice_.buffer_slices[self.orientation].mask is None): -- libgit2 0.21.2