JAL-1161 only trigger an annotation repaint in unwrapped view when the horizontal...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 19 May 2013 18:29:51 +0000 (19:29 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 24 May 2013 14:10:54 +0000 (15:10 +0100)
src/jalview/gui/AlignmentPanel.java

index b4647ae..c392b1c 100644 (file)
@@ -688,7 +688,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
         seqPanel.seqCanvas.fastPaint(scrollX, scrollY);
         scalePanel.repaint();
 
-        if (av.getShowAnnotation())
+        if (av.getShowAnnotation() && scrollX!=0)
         {
           annotationPanel.fastPaint(scrollX);
         }