From 47fdef81050c615ce519a0deaa8a5f4c67b83f0b Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 30 Aug 2018 16:31:37 +0100 Subject: [PATCH] JAL-3092 make sure base pair counter is always moved in loop that computes the helix count for a strand of RNA secondary structure --- src/jalview/analysis/Rna.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jalview/analysis/Rna.java b/src/jalview/analysis/Rna.java index 0d39abf..e5cda93 100644 --- a/src/jalview/analysis/Rna.java +++ b/src/jalview/analysis/Rna.java @@ -440,8 +440,8 @@ public class Rna /* * catch things like <<..<<..>>..<<..>>>> | */ - int j = bps.size() - 1; - while (j >= 0) + int j = bps.size(); + while (--j >= 0) { int popen = bps.get(j).getBP5(); @@ -460,7 +460,6 @@ public class Rna break; } } - j -= 1; } // Put positions and helix information into the hashtable -- 1.7.10.2