From: gmungoc Date: Wed, 26 Aug 2015 10:59:35 +0000 (+0100) Subject: JAL-1759 corrected syntax for 'atom picked' callback (toggles label X-Git-Tag: Jalview_2_9~10^2~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=405376d6d7002b3818d10aebc474f14134d5bbae;p=jalview.git JAL-1759 corrected syntax for 'atom picked' callback (toggles label on/off in Jmol) --- diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 8743554..729780c 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -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)