]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaMathView.ml
Stupid bug of mine fixed: sometimes (Some ~-1) was used in place of None.
[helm.git] / helm / matita / matitaMathView.ml
index 794b849c4918202171780c1b2c496c0b1b7a7a2e..ffbb8d7c06c164fa8584d2698d7cf137911d628c 100644 (file)
@@ -580,7 +580,7 @@ class sequentsViewer ~(notebook:GPack.notebook) ~(cicMathView:cicMathView) () =
       goal2page <- [];
       goal2win <- [];
       _metasenv <- []; 
-      self#script#setGoal ~-1;
+      self#script#setGoal None
 
     method load_sequents { proof = (_,metasenv,_,_) as proof; stack = stack } =
       _metasenv <- metasenv;
@@ -655,7 +655,7 @@ class sequentsViewer ~(notebook:GPack.notebook) ~(cicMathView:cicMathView) () =
           let goal_switch =
             try List.assoc page page2goal with Not_found -> assert false
           in
-          self#script#setGoal (goal_of_switch goal_switch);
+          self#script#setGoal (Some (goal_of_switch goal_switch));
           self#render_page ~page ~goal_switch))
 
     method private render_page ~page ~goal_switch =