Commit b07a0770ae0092af974e28109d23ae4e19711aa4

Authored by Thiago Franco de Moraes
1 parent 7b1b9c92

fixed problem with cursor showing in the wrong position when enter on editor

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/styles.py
... ... @@ -591,6 +591,7 @@ class EditorInteractorStyle(DefaultInteractorStyle):
591 591 Publisher.subscribe(self.set_boperation, 'Set edition operation')
592 592  
593 593 self._set_cursor()
  594 + self.viewer.slice_data.cursor.Show(0)
594 595  
595 596 def CleanUp(self):
596 597 Publisher.unsubscribe(self.set_bsize, 'Set edition brush size')
... ... @@ -626,7 +627,6 @@ class EditorInteractorStyle(DefaultInteractorStyle):
626 627 cursor.SetColour(self.viewer._brush_cursor_colour)
627 628 cursor.SetSize(self.config.cursor_size)
628 629 self.viewer.slice_data.SetCursor(cursor)
629   - self.viewer.interactor.Render()
630 630  
631 631 def OnEnterInteractor(self, obj, evt):
632 632 if (self.viewer.slice_.buffer_slices[self.orientation].mask is None):
... ...