From: <ha...@us...> - 2010-12-22 13:41:04
|
Revision: 14866 http://jmol.svn.sourceforge.net/jmol/?rev=14866&view=rev Author: hansonr Date: 2010-12-22 13:40:58 +0000 (Wed, 22 Dec 2010) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/adapter/readers/xtal/GulpReader.java Modified: trunk/Jmol/src/org/jmol/adapter/readers/xtal/GulpReader.java =================================================================== --- trunk/Jmol/src/org/jmol/adapter/readers/xtal/GulpReader.java 2010-12-22 13:40:10 UTC (rev 14865) +++ trunk/Jmol/src/org/jmol/adapter/readers/xtal/GulpReader.java 2010-12-22 13:40:58 UTC (rev 14866) @@ -198,7 +198,7 @@ } while (readLine() != null && line.contains("=")) { String[] tokens = getTokens(); - if (tokens.length >1 && tokens[1].equals("=")) + if (tokens.length > 2 && tokens[1].equals("=")) setParameter(tokens[0], parseFloat(tokens[2])); if (tokens.length > 5 && tokens[4].equals("=")) setParameter(tokens[3], parseFloat(tokens[5])); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |