From 405376d6d7002b3818d10aebc474f14134d5bbae Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 26 Aug 2015 11:59:35 +0100 Subject: [PATCH] JAL-1759 corrected syntax for 'atom picked' callback (toggles label on/off in Jmol) --- src/jalview/ext/jmol/JalviewJmolBinding.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.10.2