From 6002ac160ed8402d9d76bc75b3cb0875a0db08ac Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 15 Apr 2014 18:43:34 +0100 Subject: [PATCH] patch v2 for JAL-1474 add the newly recovered dataset sequence to the dataset currently being build/operated on if it isn't already present --- src/jalview/gui/Jalview2XML.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index c7fa090..ce42174 100644 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -3737,6 +3737,20 @@ public class Jalview2XML if (sq != dsq) { // make this dataset sequence sq's dataset sequence sq.setDatasetSequence(dsq); + // and update the current dataset alignment + if (ds==null) { + if (dseqs!=null) { + if (!dseqs.contains(dsq)) + { + dseqs.add(dsq); + } + } else { + if (ds.findIndex(dsq)<0) + { + ds.addSequence(dsq); + } + } + } } } } -- 1.7.10.2