Display of wrapped search results corrected
authoramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:35:27 +0000 (15:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 8 Apr 2005 15:35:27 +0000 (15:35 +0000)
src/jalview/gui/SeqCanvas.java

index 9663a47..38825c5 100755 (executable)
@@ -466,6 +466,10 @@ public void fastPaint(int horizontal, int vertical)
         if (searchSeq >= y1 && searchSeq < y2)\r
         {\r
           SequenceRenderer ssr = (SequenceRenderer) sr;\r
+          if(searchStart<x1)\r
+            searchStart = x1;\r
+          if(searchEnd > x2)\r
+            searchEnd = x2;\r
           ssr.drawHighlightedText(av.getAlignment().getSequenceAt(searchSeq),\r
                                   searchStart,\r
                                   searchEnd,\r