X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FFinder.java;h=d52e42a768a0e65db9a543e05031e5a5a164de6f;hb=1b4d71403c0e11b7afa731e9e4abda211fd4d50c;hp=0d8665ff373add02d627415bc470a70cdefd1961;hpb=bc07c82cde95d498cf6919422baf7ad3994e1bf2;p=jalview.git diff --git a/src/jalview/analysis/Finder.java b/src/jalview/analysis/Finder.java index 0d8665f..d52e42a 100644 --- a/src/jalview/analysis/Finder.java +++ b/src/jalview/analysis/Finder.java @@ -417,7 +417,7 @@ public class Finder implements FinderI * update residueIndex to next position after the start of the match * (findIndex returns a value base 1, columnIndex is held base 0) */ - residueIndex += offset + 1; + residueIndex = searchPattern.matchedFrom()+1; /* * return false if the match is entirely in a hidden region @@ -471,10 +471,7 @@ public class Finder implements FinderI */ int[] truePositions = searchedSequenceMap .locateInFrom(matchStartPosition, matchEndPosition); - for (int i = 0; i < truePositions.length - 1; i += 2) - { - searchResults.addResult(seq, truePositions[i], truePositions[i + 1]); - } + searchResults.addResult(seq, truePositions); } /**