added placeholder indicators and menu item
[jalview.git] / src / jalview / appletgui / IdCanvas.java
index 80533f2..a8f8456 100755 (executable)
@@ -106,6 +106,9 @@ public class IdCanvas extends Panel
     imgHeight = getSize().height;\r
     imgHeight -= imgHeight % av.charHeight;\r
 \r
+    if (imgHeight<1)\r
+      return;\r
+\r
     if(image==null || imgHeight!=image.getHeight(this))\r
     {\r
       image = createImage(getSize().width, imgHeight);\r