From: tcofoegbu Date: Mon, 22 Feb 2016 15:38:01 +0000 (+0000) Subject: JAL-1944 bugfix for error when exporting hidden sequences but not hidden columns X-Git-Tag: Release_2_10_0~310 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cb98f8af1387172026ae298ead3ffb29aa04510c;p=jalview.git JAL-1944 bugfix for error when exporting hidden sequences but not hidden columns --- diff --git a/src/jalview/viewmodel/AlignmentViewport.java b/src/jalview/viewmodel/AlignmentViewport.java index c4ae76d..7bbe677 100644 --- a/src/jalview/viewmodel/AlignmentViewport.java +++ b/src/jalview/viewmodel/AlignmentViewport.java @@ -1557,9 +1557,20 @@ public abstract class AlignmentViewport implements AlignViewportI, } else { - iSize = alignment.getHeight(); - seqs = alignment.getSequencesArray(); - end = alignment.getWidth(); + if (alignment.getHiddenSequences() != null) + { + iSize = alignment.getHiddenSequences().getFullAlignment() + .getHeight(); + seqs = alignment.getHiddenSequences().getFullAlignment() + .getSequencesArray(); + end = alignment.getHiddenSequences().getFullAlignment().getWidth(); + } + else + { + iSize = alignment.getHeight(); + seqs = alignment.getSequencesArray(); + end = alignment.getWidth(); + } } selection = new String[iSize];