JAL-958 - don't try to draw all zero profiles
[jalview.git] / 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
-        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;