From 6ef2f5c66d19e4b64cdcca690fab7d04a2fea09f Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Wed, 9 Dec 2009 11:18:28 +0000
Subject: [PATCH] only show gene builder overview if a gene

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@12591 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 uk/ac/sanger/artemis/components/FeatureEdit.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/uk/ac/sanger/artemis/components/FeatureEdit.java b/uk/ac/sanger/artemis/components/FeatureEdit.java
index c31c6ec15..c85385785 100644
--- a/uk/ac/sanger/artemis/components/FeatureEdit.java
+++ b/uk/ac/sanger/artemis/components/FeatureEdit.java
@@ -991,7 +991,8 @@ public class FeatureEdit extends JPanel
         }
       });
 
-      ok_cancel_update_panel.add(oneView);
+      if(((GFFStreamFeature)getFeature().getEmblFeature()).getChadoGene() != null)
+        ok_cancel_update_panel.add(oneView);
       ok_cancel_update_panel.add(tabbedView);
       fillerBox.add(Box.createHorizontalStrut( 
           tabbedView.getPreferredSize().width ));
-- 
GitLab