JAL-2551 Fix to group colouring when group extent is reduced bug/JAL-2551
authorkiramt <k.mourao@dundee.ac.uk>
Wed, 24 May 2017 12:47:58 +0000 (13:47 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Wed, 24 May 2017 12:47:58 +0000 (13:47 +0100)
src/jalview/gui/SeqPanel.java

index 7dfac5e..23bba38 100644 (file)
@@ -1737,7 +1737,7 @@ public class SeqPanel extends JPanel implements MouseListener,
     List<SequenceFeature> allFeatures = ap.getFeatureRenderer()
             .findFeaturesAtRes(sequence.getDatasetSequence(),
                     sequence.findPosition(res));
-    List<String> links = new ArrayList<String>();
+    List<String> 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;
     }
 
     /*