From b02c364763ce0b78357d1ab13406346e8a98a39d Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 13 May 2015 14:55:25 -0300 Subject: [PATCH] Fix: The hidding brush after the watershed 3D expansion --- invesalius/data/styles.py | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index b0f42f0..d0049b3 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -1341,6 +1341,14 @@ class WaterShedInteractorStyle(DefaultInteractorStyle): wp.Close() del wp + w_x, w_y = wx.GetMousePosition() + x, y = self.viewer.ScreenToClientXY(w_x, w_y) + flag = self.viewer.interactor.HitTest((x, y)) + + if flag == wx.HT_WINDOW_INSIDE: + self.OnEnterInteractor(None, None) + + if q.empty(): return #do_watershed(image, markers, tmp_mask, bstruct, self.config.algorithm, -- libgit2 0.21.2