From 34e29960cefd8e743de8734ca0ea2778bab12a40 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 27 Sep 2016 15:14:56 +0100 Subject: [PATCH] JAL-2210 resolve todo - addDBRef adds to dataset sequence. test needed --- src/jalview/datamodel/Sequence.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 44522a8..d4290a3 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -961,7 +961,12 @@ public class Sequence extends ASequence implements SequenceI @Override public void addDBRef(DBRefEntry entry) { - // TODO add to dataset sequence instead if there is one? + if (datasetSequence != null) + { + datasetSequence.addDBRef(entry); + return; + } + if (dbrefs == null) { dbrefs = new DBRefEntry[0]; -- 1.7.10.2