Revision: 20178
          http://sourceforge.net/p/jmol/code/20178
Author:   hansonr
Date:     2015-01-11 21:33:25 +0000 (Sun, 11 Jan 2015)
Log Message:
-----------
capture with filename of xxx.gif (three letters) doesn't stream

Modified Paths:
--------------
    trunk/Jmol/src/org/jmol/scriptext/CmdExt.java

Modified: trunk/Jmol/src/org/jmol/scriptext/CmdExt.java
===================================================================
--- trunk/Jmol/src/org/jmol/scriptext/CmdExt.java       2015-01-11 21:23:27 UTC 
(rev 20177)
+++ trunk/Jmol/src/org/jmol/scriptext/CmdExt.java       2015-01-11 21:33:25 UTC 
(rev 20178)
@@ -479,7 +479,8 @@
       }
       if (isTransparent)
         type += "T";
-      boolean streaming = (fileName.indexOf("0000.") != 
fileName.lastIndexOf(".") - 4);    
+      int pt = fileName.indexOf("0000.");
+      boolean streaming = (pt < 0 || pt != fileName.lastIndexOf(".") - 4);    
       boolean isRock = false;
       if (tokAt(i) == T.loop) {
         looping = true;

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


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Jmol-commits mailing list
Jmol-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-commits

Reply via email to