From: amwaterhouse Date: Fri, 8 Apr 2005 15:35:27 +0000 (+0000) Subject: Display of wrapped search results corrected X-Git-Tag: Release_2_0~448 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dde60115cd1cee37c087bf73e43b53ab42d47932;p=jalview.git Display of wrapped search results corrected --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 9663a47..38825c5 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -466,6 +466,10 @@ public void fastPaint(int horizontal, int vertical) if (searchSeq >= y1 && searchSeq < y2) { SequenceRenderer ssr = (SequenceRenderer) sr; + if(searchStart x2) + searchEnd = x2; ssr.drawHighlightedText(av.getAlignment().getSequenceAt(searchSeq), searchStart, searchEnd,