Commit 2279df9704ea459d2fdb715246ff1a4088da0ffc

Authored by Thiago Franco de Moraes
1 parent 56c8c536

Fixed the problem of creation of matrix when using the button create surface

Showing 1 changed file with 14 additions and 13 deletions   Show diff stats
invesalius/gui/task_slice.py
... ... @@ -154,21 +154,22 @@ class InnerTaskPanel(wx.Panel):
154 154 algorithm = dlgs.GetAlgorithmSelected()
155 155 options = dlgs.GetOptions()
156 156  
157   - mask_index = sl.current_mask.index
158   - method = {'algorithm': algorithm,
159   - 'options': options}
160   - srf_options = {"index": mask_index,
161   - "name": '',
162   - "quality": _('Optimal *'),
163   - "fill": False,
164   - "keep_largest": False,
165   - "overwrite": overwrite}
166   -
167   - Publisher.sendMessage('Create surface from index',
168   - {'method': method, 'options': srf_options})
169   - Publisher.sendMessage('Fold surface task')
170 157 dlgs.Destroy()
171 158  
  159 + mask_index = sl.current_mask.index
  160 + method = {'algorithm': algorithm,
  161 + 'options': options}
  162 + srf_options = {"index": mask_index,
  163 + "name": '',
  164 + "quality": _('Optimal *'),
  165 + "fill": False,
  166 + "keep_largest": False,
  167 + "overwrite": overwrite}
  168 +
  169 + Publisher.sendMessage('Create surface from index',
  170 + {'method': method, 'options': srf_options})
  171 + Publisher.sendMessage('Fold surface task')
  172 +
172 173 else:
173 174 dlg.InexistentMask()
174 175  
... ...