From dde60115cd1cee37c087bf73e43b53ab42d47932 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 8 Apr 2005 15:35:27 +0000 Subject: [PATCH] Display of wrapped search results corrected --- src/jalview/gui/SeqCanvas.java | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 1.7.10.2