diff --git a/invesalius/data/measures.py b/invesalius/data/measures.py index 75e739b..4a65928 100644 --- a/invesalius/data/measures.py +++ b/invesalius/data/measures.py @@ -172,12 +172,13 @@ class MeasurementManager(object): value = u"%.2f mm"% m.value else: value = u"%.2f°"% m.value - + msg = 'Update measurement info in GUI', Publisher.sendMessage(msg, - (index, name, colour, - type_, location, - value)) + (index, name, colour, + location, + type_, + value)) self.current = None def _change_name(self, pubsub_evt): diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py index a9748f3..60db810 100644 --- a/invesalius/gui/data_notebook.py +++ b/invesalius/gui/data_notebook.py @@ -1127,8 +1127,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): type_="LINEAR", location="SURFACE", value="0 mm"): self.SetStringItem(index, 1, label, imageId = self._list_index[index]) - self.SetStringItem(index, 2, type_) - self.SetStringItem(index, 3, location) + self.SetStringItem(index, 2, location) + self.SetStringItem(index, 3, type_) self.SetStringItem(index, 4, value) self.SetItemImage(index, 1) self.Refresh() -- libgit2 0.21.2