From 0846d23b8e3bd33b2120a0f724299bf05c175f32 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 9 Mar 2015 12:51:46 +0000 Subject: [PATCH] JAL-1565 loading a concise file causes insertions to be automatically hidden in desktop --- src/jalview/gui/AlignFrame.java | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.7.10.2