JAL-1179 - regression from JAL-1030 patch implicitly treats empty selection as null
[jalview.git] / src / jalview / viewmodel / AlignmentViewport.java
index 4ea4656..a53a68c 100644 (file)
@@ -1028,7 +1028,7 @@ public abstract class AlignmentViewport implements AlignViewportI
     // JBPNote: in applet, this method returned references to the alignment
     // sequences, and it did not honour the presence/absence of annotation
     // attached to the alignment (probably!)
-    if (selectionGroup == null)
+    if (selectionGroup == null || selectionGroup.getSize()==0)
     {
       sequences = alignment.getSequencesArray();
       AlignmentAnnotation[] annots = alignment.getAlignmentAnnotation();