From: James Procter Date: Mon, 27 Feb 2023 18:44:12 +0000 (+0000) Subject: JAL-4134 tree panel shouldn’t try to redraw before tree is calculated.. X-Git-Tag: Release_2_11_3_0~15^2^2~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=427c5af6eb8378c4a9d5bf6a967f55ab8fd253a5;p=jalview.git JAL-4134 tree panel shouldn’t try to redraw before tree is calculated.. --- 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;