JAL-1503 update version in GPL header
[jalview.git] / src / jalview / gui / TreeCanvas.java
index 9e2e582..5bea550 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
  * Copyright (C) 2014 The Jalview Authors
  * 
  * This file is part of Jalview.
@@ -667,9 +667,12 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
             RenderingHints.VALUE_ANTIALIAS_ON);
     g2.setColor(Color.white);
     g2.fillRect(0, 0, width, height);
-
     g2.setFont(font);
 
+    if (longestName==null || tree ==null)
+    {
+      g2.drawString("Calculating tree.",20,20);
+    }
     offy = font.getSize() + 10;
 
     fm = g2.getFontMetrics(font);