X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fappletgui%2FIdPanel.java;h=03f5b25f5b59fa9c6d35250112f34b91701d9779;hb=136b2682941bac853aadf1233377edd2325d2090;hp=27cbce14a5026ae571dd6256c086f31109e897ec;hpb=5cd5b6e7864fe435ceb3f5c2f339a436ea0aac93;p=jalview.git diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index 27cbce1..03f5b25 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -230,6 +230,12 @@ public class IdPanel { lastid = start; + + if (end >= av.getAlignment().getHeight()) + { + end = av.getAlignment().getHeight() - 1; + } + if (end < start) { int tmp = start; @@ -256,7 +262,7 @@ public class IdPanel av.getSelectionGroup().recalcConservation(); mouseDragging = false; - PaintRefresher.Refresh(this, av.alignment); + PaintRefresher.Refresh(this, av.getSequenceSetId()); } public void highlightSearchResults(java.util.Vector found)