From: Jim Procter Date: Wed, 7 Jan 2015 17:31:34 +0000 (+0000) Subject: JAL-1483 check dataset for features if none found on local sequence X-Git-Tag: Jalview_2_9~123^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=70c81d16f9b2bbcfcfb1479954c1caebff8e08cc;p=jalview.git JAL-1483 check dataset for features if none found on local sequence --- diff --git a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java index 30d14c2..bcf808d 100644 --- a/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java +++ b/src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java @@ -246,6 +246,13 @@ public abstract class FeatureRendererModel implements { ArrayList tmp = new ArrayList(); SequenceFeature[] features = sequence.getSequenceFeatures(); + + while (features == null && sequence.getDatasetSequence() != null) + { + sequence = sequence.getDatasetSequence(); + features = sequence.getSequenceFeatures(); + } + if (features != null) { for (int i = 0; i < features.length; i++)