Commit 6c0a5b4c281b1d79d5d0fc21728c08868cc71bb2
1 parent
7c998231
Exists in
interactor_style
OnBrushRelease was not binded to 'LeftButtonReleaseEvent'
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/data/styles.py
@@ -458,7 +458,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): | @@ -458,7 +458,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
458 | self.AddObserver("LeaveEvent", self.OnLeaveInteractor) | 458 | self.AddObserver("LeaveEvent", self.OnLeaveInteractor) |
459 | 459 | ||
460 | self.AddObserver("LeftButtonPressEvent", self.OnBrushClick) | 460 | self.AddObserver("LeftButtonPressEvent", self.OnBrushClick) |
461 | - self.AddObserver("LeftButtonReleaseEvent", self.OnBrushClick) | 461 | + self.AddObserver("LeftButtonReleaseEvent", self.OnBrushRelease) |
462 | self.AddObserver("MouseMoveEvent", self.OnBrushMove) | 462 | self.AddObserver("MouseMoveEvent", self.OnBrushMove) |
463 | 463 | ||
464 | def OnEnterInteractor(self, obj, evt): | 464 | def OnEnterInteractor(self, obj, evt): |
@@ -569,7 +569,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): | @@ -569,7 +569,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): | ||
569 | return | 569 | return |
570 | 570 | ||
571 | self.viewer.slice_.apply_slice_buffer_to_mask(self.orientation) | 571 | self.viewer.slice_.apply_slice_buffer_to_mask(self.orientation) |
572 | - self.viewer_flush_buffer = False | 572 | + self.viewer._flush_buffer = False |
573 | 573 | ||
574 | def get_coordinate_cursor(self): | 574 | def get_coordinate_cursor(self): |
575 | # Find position | 575 | # Find position |