Make sure sequence is in mouse over alignment
authoramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 14:41:54 +0000 (14:41 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 27 Apr 2007 14:41:54 +0000 (14:41 +0000)
src/jalview/appletgui/AppletJmol.java

index 3f3c3dd..4951516 100644 (file)
@@ -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++)
           {