JAL-2598 Sequence.getSequence return a copy of the char array
[jalview.git] / src / jalview / gui / AppVarna.java
index a50de77..079645f 100644 (file)
@@ -622,11 +622,10 @@ public class AppVarna extends JInternalFrame implements SelectionListener,
     ShiftList offset = new ShiftList();
     int ofstart = -1;
     int sleng = seq.getLength();
-    char[] seqChars = seq.getSequence();
 
     for (int i = 0; i < sleng; i++)
     {
-      if (Comparison.isGap(seqChars[i]))
+      if (Comparison.isGap(seq.getCharAt(i)))
       {
         if (ofstart == -1)
         {