subimage height error
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 15 Jan 2019 19:17:16 +0000 (13:17 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Tue, 15 Jan 2019 19:17:16 +0000 (13:17 -0600)
src/jalview/gui/OverviewCanvas.java

index ec2c49f..042f937 100644 (file)
@@ -181,7 +181,7 @@ public class OverviewCanvas extends JPanel
   @Override
   public void paintComponent(Graphics g)
   {
-    super.paintComponent(g);
+    //super.paintComponent(g);
 
     if (restart)
     {
@@ -206,7 +206,9 @@ public class OverviewCanvas extends JPanel
       {
         // if there is annotation, scale the alignment and annotation
         // separately
-        if (od.getGraphHeight() > 0)
+        if (od.getGraphHeight() > 0 
+                       && od.getSequencesHeight() > 0  // BH 2019
+                       )
         {
           BufferedImage topImage = lastMiniMe.getSubimage(0, 0,
                   od.getWidth(), od.getSequencesHeight());