From: <ha...@us...> - 2007-01-11 05:42:48
|
Revision: 6624 http://svn.sourceforge.net/jmol/?rev=6624&view=rev Author: hansonr Date: 2007-01-10 21:42:47 -0800 (Wed, 10 Jan 2007) Log Message: ----------- 11.0 minor bug fix for setting booleans with 0/1 Modified Paths: -------------- branches/v11_0/Jmol/src/org/jmol/viewer/Viewer.java Modified: branches/v11_0/Jmol/src/org/jmol/viewer/Viewer.java =================================================================== --- branches/v11_0/Jmol/src/org/jmol/viewer/Viewer.java 2007-01-11 05:40:28 UTC (rev 6623) +++ branches/v11_0/Jmol/src/org/jmol/viewer/Viewer.java 2007-01-11 05:42:47 UTC (rev 6624) @@ -3269,14 +3269,15 @@ break; } if (key.equalsIgnoreCase("bondRadiusMilliAngstroms")) { - setMarBond((short)value); + setMarBond((short) value); break; } if (key.equalsIgnoreCase("hermiteLevel")) { setHermiteLevel(value); break; } - if (value != 0 || value != 1 || !setBooleanProperty(key, false, false)) + if ((value != 0 && value != 1) + || !setBooleanProperty(key, value == 1, false)) setFloatProperty(key, (float) value); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |