]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_annotations_cache/cicCache.ml
* added popup menu, implemented some functions
[helm.git] / helm / ocaml / cic_annotations_cache / cicCache.ml
index 8bc4be6c4fcca3f77d88a9b7c97b26c325ae77bc..de5c1926e6f3d569169e3c08b2ee8ae3cd47641d 100644 (file)
@@ -39,7 +39,13 @@ let get_annobj uri =
  let module G = Getter in
  let module U = UriManager in
   let cicfilename = G.getxml (U.cicuri_of_uri uri) in
-   let annobj = CicParser.annobj_of_xml cicfilename uri in
+  let cicbodyfilename =
+   match U.bodyuri_of_uri uri with
+      None -> None
+    | Some bodyuri ->
+       Some (G.getxml (U.cicuri_of_uri bodyuri))
+  in
+   let annobj = CicParser.annobj_of_xml cicfilename cicbodyfilename in
     annobj,
      if U.uri_is_annuri uri then
       begin