From: Jim Procter Date: Mon, 9 Mar 2015 12:51:46 +0000 (+0000) Subject: JAL-1565 loading a concise file causes insertions to be automatically hidden in desktop X-Git-Tag: Jalview_2_9~75^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0846d23b8e3bd33b2120a0f724299bf05c175f32;p=jalview.git JAL-1565 loading a concise file causes insertions to be automatically hidden in desktop --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 2133f50..7e451aa 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -5213,6 +5213,11 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, file, protocol); new JnetAnnotationMaker().add_annotation(predictions, viewport.getAlignment(), 0, false); + SequenceI repseq = viewport.getAlignment().getSequenceAt(0); + viewport.getAlignment().setSeqrep(repseq); + ColumnSelection cs = new ColumnSelection(); + cs.hideInsertionsFor(repseq); + viewport.setColumnSelection(cs); isAnnotation = true; } else