From: jprocter Date: Wed, 16 May 2012 10:07:37 +0000 (+0100) Subject: JAL-958 - don't try to draw all zero profiles X-Git-Tag: Jalview_2_9~527 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=a7a2f92e4f62caadd8992459f802753dc3170700;p=jalview.git JAL-958 - don't try to draw all zero profiles --- diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 34df24f..d0670c2 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -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;