Commit e79a0505d7d83c175606e1ec97cec26fc65fc777

Authored by Thiago Franco de Moraes
1 parent f6ed6b7c

Fixed the position of type and location on measure data_notebook

invesalius/data/measures.py
@@ -172,12 +172,13 @@ class MeasurementManager(object): @@ -172,12 +172,13 @@ class MeasurementManager(object):
172 value = u"%.2f mm"% m.value 172 value = u"%.2f mm"% m.value
173 else: 173 else:
174 value = u"%.2f°"% m.value 174 value = u"%.2f°"% m.value
175 - 175 +
176 msg = 'Update measurement info in GUI', 176 msg = 'Update measurement info in GUI',
177 Publisher.sendMessage(msg, 177 Publisher.sendMessage(msg,
178 - (index, name, colour,  
179 - type_, location,  
180 - value)) 178 + (index, name, colour,
  179 + location,
  180 + type_,
  181 + value))
181 self.current = None 182 self.current = None
182 183
183 def _change_name(self, pubsub_evt): 184 def _change_name(self, pubsub_evt):
invesalius/gui/data_notebook.py
@@ -1127,8 +1127,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): @@ -1127,8 +1127,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin):
1127 type_="LINEAR", location="SURFACE", value="0 mm"): 1127 type_="LINEAR", location="SURFACE", value="0 mm"):
1128 self.SetStringItem(index, 1, label, 1128 self.SetStringItem(index, 1, label,
1129 imageId = self._list_index[index]) 1129 imageId = self._list_index[index])
1130 - self.SetStringItem(index, 2, type_)  
1131 - self.SetStringItem(index, 3, location) 1130 + self.SetStringItem(index, 2, location)
  1131 + self.SetStringItem(index, 3, type_)
1132 self.SetStringItem(index, 4, value) 1132 self.SetStringItem(index, 4, value)
1133 self.SetItemImage(index, 1) 1133 self.SetItemImage(index, 1)
1134 self.Refresh() 1134 self.Refresh()