Wait till visiblebonds!=null before painting
authoramwaterhouse <Andrew Waterhouse>
Tue, 29 Nov 2005 17:58:05 +0000 (17:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 29 Nov 2005 17:58:05 +0000 (17:58 +0000)
src/MCview/PDBCanvas.java

index 4672271..a86a0dd 100755 (executable)
@@ -385,7 +385,7 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe
     {\r
       super.paintComponent(g);\r
 \r
-      if(pdb==null)\r
+      if(visiblebonds==null)\r
       {\r
         g.setColor(Color.black);\r
         g.setFont(new Font("Verdana", Font.BOLD, 14));\r