From: jprocter Date: Thu, 27 Sep 2012 06:32:28 +0000 (+0100) Subject: JAL-1179 - regression from JAL-1030 patch implicitly treats empty selection as null X-Git-Tag: Jalview_2_9~287 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7d33612534e949fc19d00cd057fd8af9f7cd66eb;p=jalview.git JAL-1179 - regression from JAL-1030 patch implicitly treats empty selection as null --- 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();