From: jprocter Date: Fri, 17 Dec 2010 13:56:04 +0000 (+0000) Subject: 1.1 compat X-Git-Tag: Release_2_7~339 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=453439b6b855fd668efeb5d5da446bb996dc0a83;p=jalview.git 1.1 compat --- diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index 0bcbd5b..589c19b 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -1181,9 +1181,16 @@ public class ColumnSelection sq = sq + sb; while ((diff = spos + offset - sq.length() - 1) > 0) { - sq = sq - + ((diff >= sb.length()) ? sb.toString() : sb - .substring(0, diff)); + //sq = sq + // + ((diff >= sb.length()) ? sb.toString() : sb + // .substring(0, diff)); + if (diff>=sb.length()) { + sq+=sb.toString(); + } else { + char[] buf = new char[diff]; + sb.getChars(0, diff, buf, 0); + sq+=buf.toString(); + } } } sq += sb.toString();