summaryrefslogtreecommitdiff
path: root/net/flan/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net/flan/patches/patch-aa')
-rw-r--r--net/flan/patches/patch-aa35
1 files changed, 35 insertions, 0 deletions
diff --git a/net/flan/patches/patch-aa b/net/flan/patches/patch-aa
new file mode 100644
index 00000000000..89be120381d
--- /dev/null
+++ b/net/flan/patches/patch-aa
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/07/24 11:59:02 agc Exp $
+
+--- graphic/Graphique.java 2002/07/24 11:42:22 1.1
++++ graphic/Graphique.java 2002/07/24 11:48:27
+@@ -46,6 +46,7 @@
+ public class Graphique extends CBufferedCanvas implements ItemListener
+ {
+ protected StatManager statManager;
++ protected boolean statManagerSet;
+
+ /**
+ * The list of all the traces
+@@ -112,6 +113,7 @@
+ public void setStatManager(StatManager statManager)
+ {
+ this.statManager = statManager;
++ this.statManagerSet = true;
+ }
+
+ /**
+@@ -178,7 +180,13 @@
+
+ // At first, see if the trace is in out bounds
+
+- int iteration= statManager.getIteration(); // just a temp variable
++ int iteration;
++
++ if (statManagerSet)
++ iteration = statManager.getIteration(); // just a temp variable
++ else
++ iteration = 0;
++
+
+ if (iteration > xMax)
+ xMax = iteration;