diff --git a/invesalius/data/measures.py b/invesalius/data/measures.py index 7acda97..62b849e 100644 --- a/invesalius/data/measures.py +++ b/invesalius/data/measures.py @@ -125,7 +125,7 @@ class MeasurementManager(object): if type == const.LINEAR: value = u"%.2f mm"% m.value else: - value = u"%.2f˚"% m.value + value = u"%.2f°"% m.value msg = 'Update measurement info in GUI', ps.Publisher().sendMessage(msg, diff --git a/invesalius/gui/data_notebook.py b/invesalius/gui/data_notebook.py index 85f7aff..b01a8bb 100644 --- a/invesalius/gui/data_notebook.py +++ b/invesalius/gui/data_notebook.py @@ -1089,7 +1089,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): if m.type == const.LINEAR: value = (u"%.2f mm") % m.value else: - value = (u"%.2f˚") % m.value + value = (u"%.2f°") % m.value self.InsertNewItem(m.index, m.name, colour, type, location, value) @@ -1102,6 +1102,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): type_ = pubsub_evt.data[4] value = pubsub_evt.data[5] + if index not in self._list_index: image = self.CreateColourBitmap(colour) image_index = self.imagelist.Add(image) -- libgit2 0.21.2