From 70c81d16f9b2bbcfcfb1479954c1caebff8e08cc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 7 Jan 2015 17:31:34 +0000 Subject: [PATCH] JAL-1483 check dataset for features if none found on local sequence --- src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java | 7 +++++++ 1 file changed, 7 insertions(+) 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++) -- 1.7.10.2