From fedf8a87b0e465e6e5ce55a51a123d4a2d477959 Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 24 May 2017 13:47:58 +0100 Subject: [PATCH] JAL-2551 Fix to group colouring when group extent is reduced --- src/jalview/gui/SeqPanel.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 7dfac5e..23bba38 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -1737,7 +1737,7 @@ public class SeqPanel extends JPanel implements MouseListener, List allFeatures = ap.getFeatureRenderer() .findFeaturesAtRes(sequence.getDatasetSequence(), sequence.findPosition(res)); - List links = new ArrayList(); + List links = new ArrayList<>(); for (SequenceFeature sf : allFeatures) { if (sf.links != null) @@ -2022,11 +2022,13 @@ public class SeqPanel extends JPanel implements MouseListener, ap.getCalculationDialog().validateCalcTypes(); } - // process further ? - if (!av.followSelection) - { - return; - } + return; + } + + // process further ? + if (!av.followSelection) + { + return; } /* -- 1.7.10.2