From 63bac6089c7731e1b13da92d9b6b4c975e3a3c5d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 26 Sep 2019 14:05:05 +0100 Subject: [PATCH] JAL-3397 revert loop to forwards order --- src/jalview/renderer/seqfeatures/FeatureRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index c1bccb8..0d8185e 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -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); -- 1.7.10.2