Revision: 18336 http://sourceforge.net/p/jmol/code/18336 Author: hansonr Date: 2013-06-15 15:33:57 +0000 (Sat, 15 Jun 2013) Log Message: -----------
Modified Paths: -------------- trunk/Jmol/src/org/jmol/modelset/ModelCollection.java Modified: trunk/Jmol/src/org/jmol/modelset/ModelCollection.java =================================================================== --- trunk/Jmol/src/org/jmol/modelset/ModelCollection.java 2013-06-15 13:58:05 UTC (rev 18335) +++ trunk/Jmol/src/org/jmol/modelset/ModelCollection.java 2013-06-15 15:33:57 UTC (rev 18336) @@ -3394,13 +3394,18 @@ if (k != i && k != j && (ak = atoms[alist[k]]).isBonded(ai)) for (int l = n; --l >= 0;) if (l != i && l != j && l != k - && (al = atoms[alist[l]]).isBonded(aj)) - list.addLast(new int[] { ak.index, ai.index, aj.index, - al.index }); + && (al = atoms[alist[l]]).isBonded(aj)) { + int[] a = new int[4]; + a[0] = ak.index; + a[1] = ai.index; + a[2] = aj.index; + a[3] = al.index; + list.addLast(a); + } } } n = list.size(); - int[][] ilist = new int[n][]; + int[][] ilist = ArrayUtil.newInt2(n); for (int i = n; --i >= 0;) ilist[n - i - 1] = list.get(i); return ilist; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Jmol-commits mailing list Jmol-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-commits