only set new layout if 2 buttons visible
authoramwaterhouse <Andrew Waterhouse>
Fri, 18 Aug 2006 08:52:28 +0000 (08:52 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 18 Aug 2006 08:52:28 +0000 (08:52 +0000)
src/jalview/gui/WebserviceInfo.java

index ccda9d1..4292687 100755 (executable)
@@ -372,8 +372,10 @@ public class WebserviceInfo extends GWebserviceInfo
       buttonPanel.remove(cancel);
       buttonPanel.add(showResultsNewFrame);
       if (serviceCanMergeResults)
+      {
         buttonPanel.add(mergeResults);
-      buttonPanel.setLayout(new GridLayout(2,1,5,5));
+        buttonPanel.setLayout(new GridLayout(2, 1, 5, 5));
+      }
       buttonPanel.validate();
       validate();
       if (viewResultsImmediatly)