lastCommand check
authoramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:33:15 +0000 (13:33 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 4 May 2007 13:33:15 +0000 (13:33 +0000)
src/jalview/appletgui/AppletJmol.java

index 538d177..f873230 100644 (file)
@@ -550,7 +550,7 @@ public class AppletJmol extends Frame
       }
     }
 
-    if (lastCommand != null && !lastCommand.equals(command.toString()))
+    if (lastCommand == null || !lastCommand.equals(command.toString()))
       viewer.evalStringQuiet(command.toString());
 
     lastCommand = command.toString();