X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FFinder.java;h=47b756d9767f7cc6273c4429420b1529ec7aa853;hb=2ef43e1e505af2742f1c3a59619c8a4357ea82c4;hp=570241dc2f96b110d9baee421c8b74249c579335;hpb=e5ed660a1ee016f2a7a80f52b92a6d52ec7b47a7;p=jalview.git diff --git a/src/jalview/appletgui/Finder.java b/src/jalview/appletgui/Finder.java index 570241d..47b756d 100755 --- a/src/jalview/appletgui/Finder.java +++ b/src/jalview/appletgui/Finder.java @@ -143,7 +143,7 @@ public class Finder extends Panel implements ActionListener int res = Integer.parseInt(searchString); found = true; - if (av.getSelectionGroup() == null || av.getSelectionGroup().getSize() < 1) + if (av.getSelectionGroup() == null || av.getSelectionGroup().getSize(false) < 1) { seq = (Sequence) av.getAlignment().getSequenceAt(0); } @@ -166,7 +166,7 @@ public class Finder extends Panel implements ActionListener SequenceGroup selection = av.getSelectionGroup(); if (selection != null) { - if (selection.getSize() < 1 || + if (selection.getSize(false) < 1 || (selection.getEndRes() - selection.getStartRes() < 2)) { selection = null; @@ -178,7 +178,7 @@ public class Finder extends Panel implements ActionListener seq = (Sequence) av.alignment.getSequenceAt(seqIndex); - if (selection != null && !selection.sequences.contains(seq)) + if (selection != null && !selection.getSequences(false).contains(seq)) { seqIndex++; resIndex = 0;