update Wed Feb 10 06:37:00 PST 2010
[pkgsrc.git] / net / flan / patches / patch-aa
1 $NetBSD: patch-aa,v 1.1.1.1 2002/07/24 11:59:02 agc Exp $
2
3 --- graphic/Graphique.java      2002/07/24 11:42:22     1.1
4 +++ graphic/Graphique.java      2002/07/24 11:48:27
5 @@ -46,6 +46,7 @@
6  public class Graphique extends CBufferedCanvas implements ItemListener
7  {
8    protected StatManager statManager;
9 +  protected boolean statManagerSet;
10    
11    /**
12      * The list of all the traces
13 @@ -112,6 +113,7 @@
14    public void setStatManager(StatManager statManager)
15      {
16        this.statManager = statManager;
17 +       this.statManagerSet = true;
18      }
19  
20      /**
21 @@ -178,7 +180,13 @@
22        \r
23        // At first, see if the trace is in out bounds\r
24        \r
25 -      int iteration= statManager.getIteration(); // just a temp variable\r
26 +      int iteration;
27 +
28 +       if (statManagerSet)
29 +               iteration = statManager.getIteration(); // just a temp variable\r
30 +       else
31 +               iteration = 0;
32 +
33        \r
34        if (iteration > xMax)\r
35         xMax = iteration;\r