Turn off validation for speed
authoramwaterhouse <Andrew Waterhouse>
Wed, 5 Apr 2006 11:41:06 +0000 (11:41 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 5 Apr 2006 11:41:06 +0000 (11:41 +0000)
src/jalview/gui/Jalview2XML.java

index 5a4b03a..eb071e2 100755 (executable)
@@ -633,6 +633,7 @@ public class Jalview2XML
                     JalviewModel object = new JalviewModel();\r
 \r
                     Unmarshaller unmar = new Unmarshaller(object);\r
+                    unmar.setValidation(false);\r
                     object = (JalviewModel) unmar.unmarshal( in );\r
 \r
                     af = LoadFromObject(object);\r
@@ -752,7 +753,7 @@ public class Jalview2XML
                 {\r
                     anot[ae[aa].getPosition()] = new jalview.datamodel.Annotation(ae[aa].getDisplayCharacter(),\r
                             ae[aa].getDescription(),\r
-                            ae[aa].getSecondaryStructure().charAt(0),\r
+                            ae[aa].getSecondaryStructure().length()==0?' ':ae[aa].getSecondaryStructure().charAt(0),\r
                             ae[aa].getValue());\r
                 }\r
 \r