JAL-3253-applet JAL-3383 Overview
[jalview.git] / src / jalview / gui / OverviewCanvas.java
index b6df722..de55996 100644 (file)
@@ -47,7 +47,7 @@ public class OverviewCanvas extends JPanel
 
   private boolean disposed = false;
 
-  private BufferedImage lastMiniMe = null;
+  BufferedImage lastMiniMe = null;
 
   // Can set different properties in this seqCanvas than
   // main visible SeqCanvas
@@ -177,11 +177,7 @@ public class OverviewCanvas extends JPanel
   synchronized void finalizeDraw(BufferedImage miniMe)
   {
 
-    if (or == null)
-    {
-      System.out.println("OC or is null");
-    }
-    else if (showProgress)
+    if (showProgress && or != null)
     {
       or.removePropertyChangeListener(progressPanel);
     }
@@ -196,7 +192,7 @@ public class OverviewCanvas extends JPanel
     }
     else
     {
-      if (showAnnotation)
+      if (showAnnotation && or != null)
       {
         or.drawGraph(av.getAlignmentConservationAnnotation());
       }
@@ -303,7 +299,7 @@ public class OverviewCanvas extends JPanel
     od.drawBox(g);
   }
 
-  private int ndraw, npaint, nrepaint;
+  // private int ndraw, npaint, nrepaint;
 
   // @Override
   // public void repaint()