Commit b07a0770ae0092af974e28109d23ae4e19711aa4
1 parent
7b1b9c92
Exists in
master
and in
38 other branches
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,6 +591,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
591 | Publisher.subscribe(self.set_boperation, 'Set edition operation') | 591 | Publisher.subscribe(self.set_boperation, 'Set edition operation') |
592 | 592 | ||
593 | self._set_cursor() | 593 | self._set_cursor() |
594 | + self.viewer.slice_data.cursor.Show(0) | ||
594 | 595 | ||
595 | def CleanUp(self): | 596 | def CleanUp(self): |
596 | Publisher.unsubscribe(self.set_bsize, 'Set edition brush size') | 597 | Publisher.unsubscribe(self.set_bsize, 'Set edition brush size') |
@@ -626,7 +627,6 @@ class EditorInteractorStyle(DefaultInteractorStyle): | @@ -626,7 +627,6 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
626 | cursor.SetColour(self.viewer._brush_cursor_colour) | 627 | cursor.SetColour(self.viewer._brush_cursor_colour) |
627 | cursor.SetSize(self.config.cursor_size) | 628 | cursor.SetSize(self.config.cursor_size) |
628 | self.viewer.slice_data.SetCursor(cursor) | 629 | self.viewer.slice_data.SetCursor(cursor) |
629 | - self.viewer.interactor.Render() | ||
630 | 630 | ||
631 | def OnEnterInteractor(self, obj, evt): | 631 | def OnEnterInteractor(self, obj, evt): |
632 | if (self.viewer.slice_.buffer_slices[self.orientation].mask is None): | 632 | if (self.viewer.slice_.buffer_slices[self.orientation].mask is None): |