git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5adb410
)
JAL-3305 don't propagate an empty SelectionGroup to complement view
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2020 12:29:46 +0000
(12:29 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 19 Mar 2020 12:29:46 +0000
(12:29 +0000)
src/jalview/gui/SeqPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqPanel.java
b/src/jalview/gui/SeqPanel.java
index
7020265
..
08e1194
100644
(file)
--- a/
src/jalview/gui/SeqPanel.java
+++ b/
src/jalview/gui/SeqPanel.java
@@
-2763,7
+2763,7
@@
public class SeqPanel extends JPanel
* Map sequence selection
*/
SequenceGroup sg = MappingUtils.mapSequenceGroup(seqsel, sourceAv, av);
- av.setSelectionGroup(sg);
+ av.setSelectionGroup(sg != null && sg.getSize() > 0 ? sg : null);
av.isSelectionGroupChanged(true);
/*