JAL-1179 - regression from JAL-1030 patch implicitly treats empty selection as null
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Sep 2012 06:32:28 +0000 (07:32 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Sep 2012 06:32:28 +0000 (07:32 +0100)
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();