JAL-4134 tree panel shouldn’t try to redraw before tree is calculated..
authorJames Procter <j.procter@dundee.ac.uk>
Mon, 27 Feb 2023 18:44:12 +0000 (18:44 +0000)
committerJames Procter <j.procter@dundee.ac.uk>
Mon, 27 Feb 2023 18:44:32 +0000 (18:44 +0000)
src/jalview/gui/TreeCanvas.java

index 7bdb673..354feac 100755 (executable)
@@ -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;