From: hansonr Date: Tue, 15 Jan 2019 19:17:16 +0000 (-0600) Subject: subimage height error X-Git-Tag: Release_2_11_4_0~45^2~18^2~317 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=90f198f9988ef8a98d46b95e21b22a8fcea541d8;p=jalview.git subimage height error --- diff --git a/src/jalview/gui/OverviewCanvas.java b/src/jalview/gui/OverviewCanvas.java index ec2c49f..042f937 100644 --- a/src/jalview/gui/OverviewCanvas.java +++ b/src/jalview/gui/OverviewCanvas.java @@ -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());