From: amwaterhouse Date: Thu, 8 Dec 2005 15:34:29 +0000 (+0000) Subject: SeqColoursReady X-Git-Tag: Release_2_07~28 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=debef3a6e9343fe76c2570bc8c2ff81ef04acfa7;p=jalview.git SeqColoursReady --- diff --git a/src/MCview/AppletPDBCanvas.java b/src/MCview/AppletPDBCanvas.java index 346ae1e..f39a3fa 100755 --- a/src/MCview/AppletPDBCanvas.java +++ b/src/MCview/AppletPDBCanvas.java @@ -363,7 +363,8 @@ public class AppletPDBCanvas extends Panel implements MouseListener, MouseMotion g.drawString("Error loading PDB data!!", 50, getSize().height/2); return; } - else if( !seqColoursReady ) + + if( !seqColoursReady ) { g.setColor(Color.black); g.setFont(new Font("Verdana", Font.BOLD, 14)); @@ -928,6 +929,8 @@ public class AppletPDBCanvas extends Panel implements MouseListener, MouseMotion public void highlightRes(int ii) { + if(!seqColoursReady) + return; if (highlightRes != null && highlightRes.contains((ii-1) + ""))