]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/lablGraphviz.ml
The dependencies parser is more robust w.r.t. to lexing errors.
[helm.git] / helm / software / matita / lablGraphviz.ml
index fab25cba658047fa23d92c3f0c7458b7b97fb720..0084c9204d64e3a35cd2c57038eb27c2c9f2b5be 100644 (file)
@@ -27,6 +27,8 @@
 
 open Printf
 
+type attribute = string * string  (* <key, value> pair *)
+
 let png_flags = "-Tpng"
 let map_flags = "-Tcmapx"
 
@@ -66,11 +68,12 @@ class graphviz_impl ?packing gviz_cmd =
       ignore (Sys.command (sprintf "%s %s %s > %s"
         gviz_cmd png_flags fname tmp_png));
       image#set_file tmp_png;
+      HExtlib.safe_remove tmp_png;
       let tmp_map = tempfile () in
       ignore (Sys.command (sprintf "%s %s %s > %s"
         gviz_cmd map_flags fname tmp_map));
       self#load_map tmp_map;
-      HExtlib.safe_remove tmp_png
+      HExtlib.safe_remove tmp_map
 
     method private load_map fname =
       let areas = ref [] in