JAL-3148 further bug fix to state of 'colourBy'
[jalview.git] / 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())
     {