Commit a99a1151 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Bug when annotation removed

parent c75c6207
......@@ -337,7 +337,10 @@ class AnnotationPanel(ctrlpanel.ControlPanel):
obj.annot.canvas.Refresh()
if self.__annotList.GetCount() > 0:
self.__annotListItemSelected(idx - 1)
self.__annotList.SetSelection(max((0, idx - 1)))
idx = self.__annotList.GetSelection()
obj = self.__annotList.GetItemData(idx)
self.__annotListItemSelected(obj=obj)
def __onMoveUp(self, ev):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment