JAL-975 - doh! valid result if width matches *ungapped* input data
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 19 Jun 2012 16:28:50 +0000 (17:28 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 19 Jun 2012 16:28:50 +0000 (17:28 +0100)
src/jalview/ws/jws2/AAConsClient.java

index c76ea1c..f6c3fcf 100644 (file)
@@ -75,7 +75,7 @@ public class AAConsClient extends JabawsAlignCalcWorker
             // simple annotation row
             annotation = alignViewport.getAlignment().findOrCreateAnnotation(scr.getMethod(), true, null, null);
             Annotation[] elm = new Annotation[alWidth];
-            if (alWidth == scr.getScores().size())
+            if (alWidth == gapMap.length) // scr.getScores().size())
             {
               Iterator<Float> vals = scr.getScores().iterator();
               float m = 0f, x = 0f;