tooltip is not shown for Annotation elements with zero length description
[jalview.git] / src / jalview / appletgui / AppletJmol.java
index 7939d9b..4484b0c 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -544,16 +544,18 @@ public class AppletJmol extends EmbmenuFrame implements StructureListener,
     resetLastRes.setLength(0);
     resetLastRes.append("select " + pdbResNum);
 
+    eval.append(":");
+    resetLastRes.append(":");
     if (!chain.equals(" "))
     {
-      eval.append(":" + chain);
-      resetLastRes.append(":" + chain);
+      eval.append(chain);
+      resetLastRes.append(chain);
     }
 
-    eval.append(";wireframe 100;" + eval.toString() + ".CA;");
+    eval.append(";wireframe 100;" + eval.toString() + " and not hetero;");
 
     resetLastRes.append(";wireframe 0;" + resetLastRes.toString()
-            + ".CA;spacefill 0;");
+            + " and not hetero; spacefill 0;");
 
     eval.append("spacefill 200;select none");