From 493b96d52467e626ab1e7b298ea1deedaa24a7ac Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 17 May 2016 10:44:50 -0300 Subject: [PATCH] Updating surface info when overwriting surface --- invesalius/gui/data_notebook.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py index 7e8dce4..536113c 100644 --- a/invesalius/gui/data_notebook.py +++ b/invesalius/gui/data_notebook.py @@ -850,6 +850,8 @@ class SurfacesListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): self.UpdateItemInfo(index, name, volume, area, transparency, colour) else: self.InsertNewItem(index, name, volume, area, transparency, colour) + else: + self.UpdateItemInfo(index, name, volume, area, transparency, colour) def InsertNewItem(self, index=0, label="Surface 1", volume="0 mm3", area="0 mm2", transparency="0%%", colour=None): -- libgit2 0.21.2