JAL-244 ensure background is completely filled with white
authorJames Procter <j.procter@dundee.ac.uk>
Sun, 1 Oct 2023 19:06:28 +0000 (20:06 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Sun, 1 Oct 2023 19:06:28 +0000 (20:06 +0100)
src/jalview/gui/AlignmentPanel.java

index ae561e7..3127731 100644 (file)
@@ -1051,6 +1051,9 @@ public class AlignmentPanel extends GAlignmentPanel implements
     }
     final int alignmentDrawnHeight = (endSeq - startSeq) * charHeight + 3;
 
+    alignmentGraphics.setColor(Color.white);
+    alignmentGraphics.fillRect(0, 0, pageWidth, pageHeight+scaleHeight);
+
     /*
      * draw the Scale at horizontal offset, then reset to top left (0, 0)
      */