From 7d33612534e949fc19d00cd057fd8af9f7cd66eb Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 27 Sep 2012 07:32:28 +0100 Subject: [PATCH] JAL-1179 - regression from JAL-1030 patch implicitly treats empty selection as null --- src/jalview/viewmodel/AlignmentViewport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index 4ea4656..a53a68c 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -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(); -- 1.7.10.2