JAL-3364 white fill before writing
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 14 Jul 2019 19:52:31 +0000 (20:52 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 14 Jul 2019 19:52:31 +0000 (20:52 +0100)
src/jalview/gui/AlignmentPanel.java

index f2fdad3..3fad3de 100644 (file)
@@ -1176,7 +1176,8 @@ public class AlignmentPanel extends GAlignmentPanel implements
                 .getAlignPanel();
         dim2 = comp.getAlignmentDimension();
       }
-      final int graphicsHeight = dim1.height + dim2.height;
+      final int graphicsHeight = dim1.height + dim2.height
+              + borderBottomOffset;
       final int graphicsWidth = Math.max(dim1.width, dim2.width);
 
       jalview.util.ImageMaker im;
@@ -1198,7 +1199,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
       }
 
       im = new jalview.util.ImageMaker(this, type, imageAction,
-              graphicsWidth, graphicsHeight + borderBottomOffset, file,
+              graphicsWidth, graphicsHeight, file,
               imageTitle, alignFrame, pSessionId, headless);
       Graphics graphics = im.getGraphics();
       if (graphics == null)