JAL-958 - don't try to draw all zero profiles
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 16 May 2012 10:07:37 +0000 (11:07 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 16 May 2012 10:07:37 +0000 (11:07 +0100)
src/jalview/renderer/AnnotationRenderer.java

index 34df24f..d0670c2 100644 (file)
@@ -876,7 +876,7 @@ public class AnnotationRenderer
 
         int profl[] = getProfileFor(aa, column);
         // just try to draw the logo if profl is not null
 
         int profl[] = getProfileFor(aa, column);
         // just try to draw the logo if profl is not null
-        if (profl != null)
+        if (profl != null && profl[1] != 0)
         {
           float ht = normaliseProfile ? y - aa.graphHeight : y1;
           double htn = normaliseProfile ? aa.graphHeight : (y2 - y1);// aa.graphHeight;
         {
           float ht = normaliseProfile ? y - aa.graphHeight : y1;
           double htn = normaliseProfile ? aa.graphHeight : (y2 - y1);// aa.graphHeight;