From 427c5af6eb8378c4a9d5bf6a967f55ab8fd253a5 Mon Sep 17 00:00:00 2001 From: James Procter Date: Mon, 27 Feb 2023 18:44:12 +0000 Subject: [PATCH] =?utf8?q?JAL-4134=20tree=20panel=20shouldn=E2=80=99t=20try=20?= =?utf8?q?to=20redraw=20before=20tree=20is=20calculated..?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/TreeCanvas.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 7bdb673..354feac 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -719,6 +719,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, if (longestName == null || tree == null) { g2.drawString("Calculating tree.", 20, 20); + return; } offy = font.getSize() + 10; -- 1.7.10.2