From: <ha...@us...> - 2010-04-13 11:17:35
|
Revision: 12841 http://jmol.svn.sourceforge.net/jmol/?rev=12841&view=rev Author: hansonr Date: 2010-04-13 11:17:29 +0000 (Tue, 13 Apr 2010) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/adapter/readers/simple/JmeReader.java Modified: trunk/Jmol/src/org/jmol/adapter/readers/simple/JmeReader.java =================================================================== --- trunk/Jmol/src/org/jmol/adapter/readers/simple/JmeReader.java 2010-04-13 11:16:59 UTC (rev 12840) +++ trunk/Jmol/src/org/jmol/adapter/readers/simple/JmeReader.java 2010-04-13 11:17:29 UTC (rev 12841) @@ -106,8 +106,6 @@ private void readBonds(int bondCount) throws Exception { for (int i = 0; i < bondCount; ++i) { - int atomIndex1 = parseInt(tokenizer.nextToken()) - 1; - int atomIndex2 = parseInt(tokenizer.nextToken()) - 1; int order = parseInt(tokenizer.nextToken()); switch (order) { default: @@ -123,6 +121,8 @@ order = JmolAdapter.ORDER_STEREO_FAR; break; } + int atomIndex1 = parseInt(tokenizer.nextToken()) - 1; + int atomIndex2 = parseInt(tokenizer.nextToken()) - 1; atomSetCollection.addBond(new Bond(atomIndex1, atomIndex2, order)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |