JAL-1483 check dataset for features if none found on local sequence
authorJim Procter <jprocter@dundee.ac.uk>
Wed, 7 Jan 2015 17:31:34 +0000 (17:31 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Wed, 7 Jan 2015 17:31:34 +0000 (17:31 +0000)
src/jalview/viewmodel/seqfeatures/FeatureRendererModel.java

index 30d14c2..bcf808d 100644 (file)
@@ -246,6 +246,13 @@ public abstract class FeatureRendererModel implements
   {
     ArrayList<SequenceFeature> tmp = new ArrayList<SequenceFeature>();
     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++)