From ae45339b760492fc71cadf5a52b0b386942a4bd4 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 Apr 2007 14:41:54 +0000 Subject: [PATCH] Make sure sequence is in mouse over alignment --- src/jalview/appletgui/AppletJmol.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) { -- 1.7.10.2