JAL-2591 More HiddenColumns refactoring. Tests passing.
[jalview.git] / src / jalview / util / MappingUtils.java
index f75286a..1fe55f3 100644 (file)
@@ -518,7 +518,6 @@ public final class MappingUtils
     AlignViewportI protein = targetIsNucleotide ? mapFrom : mapTo;
     List<AlignedCodonFrame> codonFrames = protein.getAlignment()
             .getCodonFrames();
-    // ColumnSelection mappedColumns = new ColumnSelection();
 
     if (colsel == null)
     {
@@ -540,7 +539,7 @@ public final class MappingUtils
               toSequences, fromGapChar);
     }
 
-    for (int[] hidden : hiddencols)
+    for (int[] hidden : hiddencols.getHiddenColumnsCopyAsList())
     {
       mapHiddenColumns(hidden, codonFrames, newHidden, fromSequences,
               toSequences, fromGapChar);