From e79a0505d7d83c175606e1ec97cec26fc65fc777 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 18 May 2015 09:32:36 -0300 Subject: [PATCH] Fixed the position of type and location on measure data_notebook --- invesalius/data/measures.py | 9 +++++---- invesalius/gui/data_notebook.py | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) 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