ensure all colour statements added to string set
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 17 May 2011 08:25:44 +0000 (09:25 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 17 May 2011 08:25:44 +0000 (09:25 +0100)
src/jalview/ext/jmol/JmolCommands.java

index acf27f6..0e6cac3 100644 (file)
@@ -99,6 +99,11 @@ public class JmolCommands
         }\r
       }\r
     }\r
+    {\r
+      // add final chunk\r
+      str.add(command.toString());\r
+      command.setLength(0);\r
+    }\r
     return str.toArray(new String[str.size()]);\r
   }\r
 \r