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 172 value = u"%.2f mm"% m.value
173 173 else:
174 174 value = u"%.2f°"% m.value
175   -
  175 +
176 176 msg = 'Update measurement info in GUI',
177 177 Publisher.sendMessage(msg,
178   - (index, name, colour,
179   - type_, location,
180   - value))
  178 + (index, name, colour,
  179 + location,
  180 + type_,
  181 + value))
181 182 self.current = None
182 183  
183 184 def _change_name(self, pubsub_evt):
... ...
invesalius/gui/data_notebook.py
... ... @@ -1127,8 +1127,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin):
1127 1127 type_="LINEAR", location="SURFACE", value="0 mm"):
1128 1128 self.SetStringItem(index, 1, label,
1129 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 1132 self.SetStringItem(index, 4, value)
1133 1133 self.SetItemImage(index, 1)
1134 1134 self.Refresh()
... ...