From 90f198f9988ef8a98d46b95e21b22a8fcea541d8 Mon Sep 17 00:00:00 2001 From: hansonr Date: Tue, 15 Jan 2019 13:17:16 -0600 Subject: [PATCH] subimage height error --- src/jalview/gui/OverviewCanvas.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()); -- 1.7.10.2