From: <ha...@us...> - 2009-06-03 05:38:47
|
Revision: 10948 http://jmol.svn.sourceforge.net/jmol/?rev=10948&view=rev Author: hansonr Date: 2009-06-03 05:38:46 +0000 (Wed, 03 Jun 2009) Log Message: ----------- version=11.7.40 # bug fix: various tweaks of atom properties business. Modified Paths: -------------- trunk/Jmol/src/org/jmol/modelset/LabelToken.java Modified: trunk/Jmol/src/org/jmol/modelset/LabelToken.java =================================================================== --- trunk/Jmol/src/org/jmol/modelset/LabelToken.java 2009-06-03 05:24:30 UTC (rev 10947) +++ trunk/Jmol/src/org/jmol/modelset/LabelToken.java 2009-06-03 05:38:46 UTC (rev 10948) @@ -452,7 +452,8 @@ Atom[] atoms = measurement.modelSet.atoms; int[] indices = measurement.getCountPlusIndices(); for (int i = indices[0]; i >= 1;--i) - formatLabel(atoms[indices[i]], null, tokens, (char)('0' + i), null); + if (indices[i] >= 0) + formatLabel(atoms[indices[i]], null, tokens, (char)('0' + i), null); label = getLabel(tokens); return (label == null ? "" : label); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |