JAL-3397 revert loop to forwards order
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 13:05:05 +0000 (14:05 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 13:05:05 +0000 (14:05 +0100)
src/jalview/renderer/seqfeatures/FeatureRenderer.java

index c1bccb8..0d8185e 100644 (file)
@@ -329,7 +329,7 @@ public class FeatureRenderer extends FeatureRendererModel
         filterFeaturesForDisplay(overlaps);
       }
 
-      for (int i = overlaps.size(); --i >= 0;)
+      for (int i = 0, j = overlaps.size(); i < j; i++)
       {
         SequenceFeature sf = overlaps.get(i);
         Color featureColour = getColor(sf, fc);