jalview.datamodel.AlignmentI ds = getDatasetFor(
vamsasSet.getDatasetId());
Vector dseqs = null;
- if (ds == null)
+ if (!ignoreUnrefed)
{
- if (!ignoreUnrefed)
+ // recovering an alignment View
+ AlignmentI seqSetDS = getDatasetFor(UNIQSEQSETID + uniqueSeqSetId);
+ if (seqSetDS != null)
{
- // try to resolve the dataset via uniqueSeqSetId
- ds = getDatasetFor(UNIQSEQSETID + uniqueSeqSetId);
- if (ds != null)
+ if (ds != null && ds != seqSetDS)
{
- addDatasetRef(vamsasSet.getDatasetId(), ds);
+ warn("JAL-3171 regression: Overwriting a dataset reference for an alignment"
+ + " - CDS/Protein crossreference data may be lost");
}
+ ds = seqSetDS;
+ addDatasetRef(vamsasSet.getDatasetId(), ds);
}
}
if (ds == null)