From: amwaterhouse Date: Tue, 29 Nov 2005 17:58:05 +0000 (+0000) Subject: Wait till visiblebonds!=null before painting X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2b705287f64fe33c17f0f06eb3e5e4eba08e7502;p=jalview.git Wait till visiblebonds!=null before painting --- 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));