Revision: 20351
          http://sourceforge.net/p/jmol/code/20351
Author:   hansonr
Date:     2015-03-01 17:55:57 +0000 (Sun, 01 Mar 2015)
Log Message:
-----------
NBO tweaks

Modified Paths:
--------------
    trunk/Jmol/src/org/openscience/jmol/app/nbo/NBOService.java

Modified: trunk/Jmol/src/org/openscience/jmol/app/nbo/NBOService.java
===================================================================
--- trunk/Jmol/src/org/openscience/jmol/app/nbo/NBOService.java 2015-03-01 
16:54:40 UTC (rev 20350)
+++ trunk/Jmol/src/org/openscience/jmol/app/nbo/NBOService.java 2015-03-01 
17:55:57 UTC (rev 20351)
@@ -178,7 +178,7 @@
   }
 
   public void nboReport(String line) {
-    vwr.log("receiving: " + line);
+    vwr.log(inData + " " + nboSync + " " + sbRet.length() + " " + "receiving: 
" + line);
     if (line.startsWith("DATA ")) {
       if (line.startsWith("DATA \"model")) {
         nboModel = PT.getQuotedStringAt(line, 0);
@@ -193,11 +193,11 @@
       sbRet.append(line + "\n");
       if (line.indexOf("END") >= 0) {
         inData = false;
-        String s = sbRet.toString();
-        sbRet.setLength(0);
         String m = "\"" + nboModel + "\"";
         nboModel = "\0";
         if (!nboSync && line.indexOf(m) >= 0) {
+          String s = sbRet.toString();
+          sbRet.setLength(0);
           vwr.log("running Jmol script:\n" + s);
           vwr.script(s);
         }

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