From: amwaterhouse Date: Fri, 27 Apr 2007 14:41:54 +0000 (+0000) Subject: Make sure sequence is in mouse over alignment X-Git-Tag: Release_2_3~133 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ae45339b760492fc71cadf5a52b0b386942a4bd4;p=jalview.git Make sure sequence is in mouse over alignment --- diff --git a/src/jalview/appletgui/AppletJmol.java b/src/jalview/appletgui/AppletJmol.java index 3f3c3dd..4951516 100644 --- a/src/jalview/appletgui/AppletJmol.java +++ b/src/jalview/appletgui/AppletJmol.java @@ -502,7 +502,8 @@ public class AppletJmol extends Frame { for (int m = 0; m < mapping.length; m++) { - if (mapping[m].getSequence() == sequence[s]) + if (mapping[m].getSequence() == sequence[s] + && ap.av.alignment.findIndex(sequence[s])>-1) { for (int r = 0; r < sequence[s].getLength(); r++) {