JAL-2381 copy and paste sequence also copies contact matrix annotation
[jalview.git] / src / jalview / datamodel / SequenceGroup.java
index b356894..81f8664 100755 (executable)
@@ -311,6 +311,11 @@ public class SequenceGroup implements AnnotatedCollectionI
             newannot.restrict(startRes, endRes);
             newannot.setSequenceRef(seqs[ipos]);
             newannot.adjustForAlignment();
+            ContactMatrixI cm = seq.getContactMatrixFor(seq.getAnnotation()[a]);
+            if (cm!=null)
+            {
+              seqs[ipos].addContactListFor(newannot, cm);
+            }
             seqipos.addAlignmentAnnotation(newannot);
           }
         }