From 6c0a5b4c281b1d79d5d0fc21728c08868cc71bb2 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 27 Mar 2013 15:08:39 -0300 Subject: [PATCH] OnBrushRelease was not binded to 'LeftButtonReleaseEvent' --- invesalius/data/styles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index 54df8c6..02050ea 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -458,7 +458,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): self.AddObserver("LeaveEvent", self.OnLeaveInteractor) self.AddObserver("LeftButtonPressEvent", self.OnBrushClick) - self.AddObserver("LeftButtonReleaseEvent", self.OnBrushClick) + self.AddObserver("LeftButtonReleaseEvent", self.OnBrushRelease) self.AddObserver("MouseMoveEvent", self.OnBrushMove) def OnEnterInteractor(self, obj, evt): @@ -569,7 +569,7 @@ class EditorInteractorStyle(DefaultInteractorStyle): return self.viewer.slice_.apply_slice_buffer_to_mask(self.orientation) - self.viewer_flush_buffer = False + self.viewer._flush_buffer = False def get_coordinate_cursor(self): # Find position -- libgit2 0.21.2