From 2b705287f64fe33c17f0f06eb3e5e4eba08e7502 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 29 Nov 2005 17:58:05 +0000 Subject: [PATCH] Wait till visiblebonds!=null before painting --- src/MCview/PDBCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MCview/PDBCanvas.java b/src/MCview/PDBCanvas.java index 4672271..a86a0dd 100755 --- a/src/MCview/PDBCanvas.java +++ b/src/MCview/PDBCanvas.java @@ -385,7 +385,7 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe { super.paintComponent(g); - if(pdb==null) + if(visiblebonds==null) { g.setColor(Color.black); g.setFont(new Font("Verdana", Font.BOLD, 14)); -- 1.7.10.2