Commit d0ee154b274a12b8d270bcadedde622db86ed3cd
1 parent
c13a5e1d
Exists in
master
and in
68 other branches
FIX: Location and type values on measures notebook
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
invesalius/gui/data_notebook.py
... | ... | @@ -1092,7 +1092,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
1092 | 1092 | value = (u"%.2f mm") % m.value |
1093 | 1093 | else: |
1094 | 1094 | value = (u"%.2f°") % m.value |
1095 | - self.InsertNewItem(m.index, m.name, colour, type, location, value) | |
1095 | + self.InsertNewItem(m.index, m.name, colour, location, type, value) | |
1096 | 1096 | |
1097 | 1097 | if not m.is_shown: |
1098 | 1098 | self.SetItemImage(i, False) |
... | ... | @@ -1101,8 +1101,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
1101 | 1101 | index = pubsub_evt.data[0] |
1102 | 1102 | name = pubsub_evt.data[1] |
1103 | 1103 | colour = pubsub_evt.data[2] |
1104 | - location = pubsub_evt.data[4] | |
1105 | - type_ = pubsub_evt.data[3] | |
1104 | + location = pubsub_evt.data[3] | |
1105 | + type_ = pubsub_evt.data[4] | |
1106 | 1106 | value = pubsub_evt.data[5] |
1107 | 1107 | |
1108 | 1108 | if index not in self._list_index: |
... | ... | @@ -1113,9 +1113,9 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
1113 | 1113 | self._list_index[index] = image_index |
1114 | 1114 | |
1115 | 1115 | if (index in index_list) and index_list: |
1116 | - self.UpdateItemInfo(index, name, colour, type_, location, value) | |
1116 | + self.UpdateItemInfo(index, name, colour, location, type_, value) | |
1117 | 1117 | else: |
1118 | - self.InsertNewItem(index, name, colour, type_, location, value) | |
1118 | + self.InsertNewItem(index, name, colour, location, type_, value) | |
1119 | 1119 | |
1120 | 1120 | |
1121 | 1121 | |
... | ... | @@ -1124,8 +1124,8 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
1124 | 1124 | self.InsertStringItem(index, "") |
1125 | 1125 | self.SetStringItem(index, 1, label, |
1126 | 1126 | imageId = self._list_index[index]) |
1127 | - self.SetStringItem(index, 2, type_) | |
1128 | - self.SetStringItem(index, 3, location) | |
1127 | + self.SetStringItem(index, 2, location) | |
1128 | + self.SetStringItem(index, 3, type_) | |
1129 | 1129 | self.SetStringItem(index, 4, value) |
1130 | 1130 | self.SetItemImage(index, 1) |
1131 | 1131 | self.Refresh() | ... | ... |