fix serious repetitive exceptions if user closes colour dialog box without selecting...
authorjprocter <Jim Procter>
Wed, 22 Aug 2007 13:32:51 +0000 (13:32 +0000)
committerjprocter <Jim Procter>
Wed, 22 Aug 2007 13:32:51 +0000 (13:32 +0000)
src/jalview/gui/TreeCanvas.java

index ea2ef4d..328f02a 100755 (executable)
@@ -682,8 +682,10 @@ public class TreeCanvas
       {
         Color col = JColorChooser.showDialog(this, "Select Sub-Tree Colour",
                                              highlightNode.color);
-
-        setColor(highlightNode, col);
+        if (col!=null)
+        {
+          setColor(highlightNode, col);
+        }
       }
       else
       if (evt.getClickCount() > 1)