Merge branch 'bug/JAL-2634' into develop
authorJim Procter <jprocter@issues.jalview.org>
Wed, 9 Aug 2017 08:09:56 +0000 (09:09 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 9 Aug 2017 08:09:56 +0000 (09:09 +0100)
src/jalview/appletgui/AlignmentPanel.java
src/jalview/appletgui/AnnotationPanel.java

index 4147177..d679217 100644 (file)
@@ -643,7 +643,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener,
 
   public void setWrapAlignment(boolean wrap)
   {
-    vpRanges.setStartSeq(0);
+    vpRanges.setStartEndSeq(0, vpRanges.getVisibleAlignmentHeight());
     vpRanges.setStartRes(0);
     scalePanelHolder.setVisible(!wrap);
 
index 39b718d..417bb06 100755 (executable)
@@ -634,7 +634,7 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI,
 
   public void fastPaint(int horizontal)
   {
-    if (horizontal == 0
+    if (horizontal == 0 || gg == null
             || av.getAlignment().getAlignmentAnnotation() == null
             || av.getAlignment().getAlignmentAnnotation().length < 1)
     {