From 2279df9704ea459d2fdb715246ff1a4088da0ffc Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 7 Apr 2014 10:41:56 -0300 Subject: [PATCH] Fixed the problem of creation of matrix when using the button create surface --- invesalius/gui/task_slice.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/invesalius/gui/task_slice.py b/invesalius/gui/task_slice.py index 78be93b..282a69f 100644 --- a/invesalius/gui/task_slice.py +++ b/invesalius/gui/task_slice.py @@ -154,21 +154,22 @@ class InnerTaskPanel(wx.Panel): algorithm = dlgs.GetAlgorithmSelected() options = dlgs.GetOptions() - mask_index = sl.current_mask.index - method = {'algorithm': algorithm, - 'options': options} - srf_options = {"index": mask_index, - "name": '', - "quality": _('Optimal *'), - "fill": False, - "keep_largest": False, - "overwrite": overwrite} - - Publisher.sendMessage('Create surface from index', - {'method': method, 'options': srf_options}) - Publisher.sendMessage('Fold surface task') dlgs.Destroy() + mask_index = sl.current_mask.index + method = {'algorithm': algorithm, + 'options': options} + srf_options = {"index": mask_index, + "name": '', + "quality": _('Optimal *'), + "fill": False, + "keep_largest": False, + "overwrite": overwrite} + + Publisher.sendMessage('Create surface from index', + {'method': method, 'options': srf_options}) + Publisher.sendMessage('Fold surface task') + else: dlg.InexistentMask() -- libgit2 0.21.2