Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fsleyes
fsleyes
Commits
a99a1151
Commit
a99a1151
authored
May 17, 2022
by
Paul McCarthy
🚵
Browse files
BF: Bug when annotation removed
parent
c75c6207
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsleyes/plugins/controls/annotationpanel.py
View file @
a99a1151
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment