Revision: 5153
Author:   hansonr
Date:     2006-05-20 12:03:05 -0700 (Sat, 20 May 2006)
ViewCVS:  http://svn.sourceforge.net/jmol/?rev=5153&view=rev

Log Message:
-----------
bob200603 oops, forgot default "rotate" "spin"

Modified Paths:
--------------
    branches/bob200603/Jmol/src/org/jmol/viewer/Eval.java
Modified: branches/bob200603/Jmol/src/org/jmol/viewer/Eval.java
===================================================================
--- branches/bob200603/Jmol/src/org/jmol/viewer/Eval.java       2006-05-20 
18:30:40 UTC (rev 5152)
+++ branches/bob200603/Jmol/src/org/jmol/viewer/Eval.java       2006-05-20 
19:03:05 UTC (rev 5153)
@@ -1884,14 +1884,15 @@
      *
      */
 
-    switch (statement[1].tok) {
-    case Token.on:
-      viewer.setSpinOn(true);
-      return;
-    case Token.off:
-      viewer.setSpinOn(false);
-      return;
-    }
+    if (statement.length == 2)
+      switch (statement[1].tok) {
+      case Token.on:
+        viewer.setSpinOn(true);
+        return;
+      case Token.off:
+        viewer.setSpinOn(false);
+        return;
+      }
 
     float degrees = Float.MIN_VALUE;
     int nPoints = 0;
@@ -1906,7 +1907,6 @@
     int direction = 1;
     boolean axesOrientationRasmol = viewer.getAxesOrientationRasmol();
 
-    
     for (int i = 0; i < 3; ++i)
       points[i] = new Point3f(0, 0, 0);
     for (int i = 1; i < statementLength; ++i) {
@@ -1939,7 +1939,7 @@
         break;
       case Token.identifier:
         if (((String) statement[i].value).equalsIgnoreCase("internal")
-            || ((String) statement[i].value).equalsIgnoreCase("molecular") )
+            || ((String) statement[i].value).equalsIgnoreCase("molecular"))
           isInternal = true;
         break;
       case Token.leftbrace:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to