From: kiramt Date: Wed, 24 May 2017 12:47:58 +0000 (+0100) Subject: JAL-2551 Fix to group colouring when group extent is reduced X-Git-Tag: Release_2_10_2~3^2~54^2~2^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fedf8a87b0e465e6e5ce55a51a123d4a2d477959;p=jalview.git JAL-2551 Fix to group colouring when group extent is reduced --- 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; } /*