X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FGrouping.java;h=165a3df6c8b19f505f1b137fe0a3f5dabf77ec00;hb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;hp=b01c815db332ac6eb2061af7e9edc2460e4977b9;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/analysis/Grouping.java b/src/jalview/analysis/Grouping.java index b01c815..165a3df 100644 --- a/src/jalview/analysis/Grouping.java +++ b/src/jalview/analysis/Grouping.java @@ -1,5 +1,5 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b1) + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. @@ -127,6 +127,11 @@ public class Grouping } } } + + /* + * get selected columns (in the order they were selected); + * note this could include right-to-left ranges + */ int[] spos = new int[cs.getSelected().size()]; int width = -1; int i = 0; @@ -134,7 +139,7 @@ public class Grouping { spos[i++] = pos.intValue(); } - ; + for (i = 0; i < sequences.length; i++) { int slen = sequences[i].getLength();