Commit 39bf7be3ea514c512cf875f8d9f2925b6a51814c
1 parent
8ef132b5
Exists in
master
Sorting measures by index when loading from dict
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/gui/data_notebook.py
... | ... | @@ -1135,7 +1135,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
1135 | 1135 | index=index, visibility=visibility) |
1136 | 1136 | |
1137 | 1137 | def OnLoadData(self, measurement_dict, spacing=(1.0, 1.0, 1.0)): |
1138 | - for i in measurement_dict: | |
1138 | + for i in sorted(measurement_dict): | |
1139 | 1139 | m = measurement_dict[i] |
1140 | 1140 | image = self.CreateColourBitmap(m.colour) |
1141 | 1141 | image_index = self.imagelist.Add(image) | ... | ... |