GraphHeight might be zero
authoramwaterhouse <Andrew Waterhouse>
Wed, 30 Aug 2006 16:10:07 +0000 (16:10 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 30 Aug 2006 16:10:07 +0000 (16:10 +0000)
src/jalview/gui/AnnotationLabels.java

index 87bb774..c537550 100755 (executable)
@@ -447,7 +447,7 @@ public class AnnotationLabels extends JPanel implements MouseListener,
 \r
                 x = width - fm.stringWidth(aa[i].label) - 3;\r
 \r
-                if (aa[i].graph>0)\r
+                if (aa[i].graph>0 && aa[i].graphHeight>0)\r
                 {\r
                     graphExtras = y;\r
 \r