From: <ha...@us...> - 2006-11-23 15:18:54
|
Revision: 6303 http://svn.sourceforge.net/jmol/?rev=6303&view=rev Author: hansonr Date: 2006-11-23 07:18:52 -0800 (Thu, 23 Nov 2006) Log Message: ----------- restrict fix Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Eval.java Modified: trunk/Jmol/src/org/jmol/viewer/Eval.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Eval.java 2006-11-23 14:59:38 UTC (rev 6302) +++ trunk/Jmol/src/org/jmol/viewer/Eval.java 2006-11-23 15:18:52 UTC (rev 6303) @@ -2929,8 +2929,7 @@ BitSet bsSelected = copyBitSet(viewer.getSelectionSet()); viewer.invertSelection(); if (bsSubset != null) { - BitSet bs = new BitSet(); - bs.or(bsSelected); + BitSet bs = copyBitSet(viewer.getSelectionSet()); bs.and(bsSubset); viewer.setSelectionSet(bs); } @@ -3254,8 +3253,10 @@ void subset() throws ScriptException { bsSubset = (statementLength == 1 ? null : expression(statement, -1)); - if (!isSyntaxCheck) - viewer.setSelectionSubset(bsSubset); + if (isSyntaxCheck) + return; + viewer.setSelectionSubset(bsSubset); + viewer.select(bsSubset, false); } void translate() throws ScriptException { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |