From 3ed1950a0283cbf7f312f58d9aabbbd21abfa4a8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 6 Nov 2018 17:05:23 +0000 Subject: [PATCH] JAL-3148 further bug fix to state of 'colourBy' --- src/jalview/structures/models/AAStructureBindingModel.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jalview/structures/models/AAStructureBindingModel.java b/src/jalview/structures/models/AAStructureBindingModel.java index a53674f..f172490 100644 --- a/src/jalview/structures/models/AAStructureBindingModel.java +++ b/src/jalview/structures/models/AAStructureBindingModel.java @@ -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()) { -- 1.7.10.2