reference. (The broken link will already have been reported in the
mid-end, but this won't inhibit output generation, so the onus is
still on us to at the very least not go *crash*.)
git-svn-id: svn://svn.tartarus.org/sgt/halibut@2507
cda61777-01e9-0310-a592-
d414129be87e
case word_LowerXref:
if (subsidiary) break; /* disabled in subsidiary bits */
kwl = kw_lookup(state->keywords, text->text);
case word_LowerXref:
if (subsidiary) break; /* disabled in subsidiary bits */
kwl = kw_lookup(state->keywords, text->text);
- assert(xref_target == NULL);
- if (kwl->para->type == para_NumberedList) {
- break; /* don't xref to numbered list items */
- } else if (kwl->para->type == para_BiblioCited) {
- /*
- * An xref to a bibliography item jumps to the section
- * containing it.
- */
- if (kwl->para->parent)
- xref_target = kwl->para->parent;
- else
- break;
- } else {
- xref_target = kwl->para;
- }
- whlp_start_hyperlink(state->h, (WHLP_TOPIC)xref_target->private_data);
+ assert(xref_target == NULL);
+ if (kwl) {
+ if (kwl->para->type == para_NumberedList) {
+ break; /* don't xref to numbered list items */
+ } else if (kwl->para->type == para_BiblioCited) {
+ /*
+ * An xref to a bibliography item jumps to the section
+ * containing it.
+ */
+ if (kwl->para->parent)
+ xref_target = kwl->para->parent;
+ else
+ break;
+ } else {
+ xref_target = kwl->para;
+ }
+ whlp_start_hyperlink(state->h,
+ (WHLP_TOPIC)xref_target->private_data);
+ }
break;
case word_XrefEnd:
break;
case word_XrefEnd: