X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fsource_description.c;h=02d093fbeb0cd6707e71e055fa06e55c921fa4e2;hb=866835ac8928d7e40919c2ca59799cb37023856f;hp=65e98ac92e99bf72cb82e1cdcef40106063c490e;hpb=bb2090762d3ae9355a04286c33b78d24736b783c;p=gedcom-parse.git diff --git a/gom/source_description.c b/gom/source_description.c index 65e98ac..02d093f 100644 --- a/gom/source_description.c +++ b/gom/source_description.c @@ -47,11 +47,12 @@ Gedcom_ctxt sub_sour_caln_start(_ELT_PARAMS_) free(desc); } else { - switch (ctxt->ctxt_type) { + int type = ctxt_type(ctxt); + switch (type) { case ELT_SUB_REPO: ADDFUNC2(source,source_description)(ctxt, desc); break; default: - UNEXPECTED_CONTEXT(ctxt->ctxt_type); + UNEXPECTED_CONTEXT(type); } result = MAKE_GOM_CTXT(elt, source_description, desc); }