JAL-1759 corrected syntax for 'atom picked' callback (toggles label
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Aug 2015 10:59:35 +0000 (11:59 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 26 Aug 2015 10:59:35 +0000 (11:59 +0100)
on/off in Jmol)

src/jalview/ext/jmol/JalviewJmolBinding.java

index 8743554..729780c 100644 (file)
@@ -947,7 +947,7 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel
     String mdlString = "";
     if ((p = strInfo.indexOf(":")) > -1)
     {
-      picked += strInfo.substring(p + 1, strInfo.indexOf("."));
+      picked += strInfo.substring(p, strInfo.indexOf("."));
     }
 
     if ((p = strInfo.indexOf("/")) > -1)