JAL-3148 further bug fix to state of 'colourBy'
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 6 Nov 2018 17:05:23 +0000 (17:05 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 6 Nov 2018 17:05:23 +0000 (17:05 +0000)
src/jalview/structures/models/AAStructureBindingModel.java

index a53674f..f172490 100644 (file)
@@ -844,8 +844,15 @@ public abstract class AAStructureBindingModel
     colourBy = ColourBy.ChargeAndCysteine;
   }
 
+  /**
+   * Colour the structure as per the sequence alignment
+   * 
+   * @param alignmentv
+   * @param showFeatures
+   */
   public void colourBySequence(AlignmentViewPanel alignmentv, boolean showFeatures)
   {
+    colourBy = ColourBy.Sequence;
     colourBySequence(alignmentv, alignmentv.getSequenceRenderer(), showFeatures);
   }
 
@@ -856,7 +863,6 @@ public abstract class AAStructureBindingModel
   public void colourBySequence(AlignmentViewPanel alignmentv, SequenceRendererI sr, boolean showFeats)
   {
     showFeatures = showFeats;
-    colourBy = ColourBy.Sequence;
     
     if (!isLoadingFinished())
     {