JAL-1683 replace year/version strings with tokens in source
[jalview.git] / src / jalview / structure / StructureMapping.java
index cbc2c00..a62f1ae 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -133,7 +133,10 @@ public class StructureMapping
     {
       ds = ds.getDatasetSequence();
     }
-    ala_copy.remap(ds, mapping, 0, -1, 1);
+    // need to relocate annotation from pdb coordinates to local sequence
+    // -1,-1 doesn't look at pdbresnum but fails to remap sequence positions...
+
+    ala_copy.remap(ds, mapping, -1, -1, 0);
     ds.addAlignmentAnnotation(ala_copy);
     if (ds != sequence)
     {