From 507800557a9b27cc6e1a3f831cbb7d18c9d173d0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 4 Oct 2013 15:03:52 +0100 Subject: [PATCH] fix for JAL-1380 and efficiency todo for JAL-1381 --- src/jalview/datamodel/Sequence.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 580c850..fa063ff 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -707,6 +707,7 @@ public class Sequence implements SequenceI { tmp = new char[i]; System.arraycopy(sequence, 0, tmp, 0, i); + j=sequence.length; } else { @@ -715,6 +716,9 @@ public class Sequence implements SequenceI System.arraycopy(sequence, j, tmp, i, sequence.length - j); } boolean createNewDs = false; + // TODO: take a look at the new dataset creation validation method below - + // this could become time comsuming for large sequences - consider making it + // more efficient for (int s = i; s < j; s++) { if (jalview.schemes.ResidueProperties.aaIndex[sequence[s]] != 23) -- 1.7.10.2