Skip to content

Commit

Permalink
Fix for Mantis bug 1841
Browse files Browse the repository at this point in the history
  • Loading branch information
ganelson committed Apr 14, 2022
1 parent fcb3dbe commit 8776b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inbuild/supervisor-module/Chapter 6/Headings.w
Expand Up @@ -667,12 +667,13 @@ void Headings::excise_material_under(parse_node_tree *T, inbuild_copy *C,
}

Headings::suppress_dependencies(hpn);
if (transfer_to) SyntaxTree::graft(T, hpn->down, transfer_to);
if ((transfer_to) && (hpn->down)) SyntaxTree::graft(T, hpn->down, transfer_to);
hpn->down = NULL;
}

@ =
heading *Headings::find_dependent_heading(parse_node *pn) {
if (pn == NULL) return NULL;
if (Node::get_type(pn) == HEADING_NT) {
heading *h = Headings::from_node(pn);
if ((h) && (Wordings::nonempty(h->in_place_of_text))) return h;
Expand Down

0 comments on commit 8776b2d

Please sign in to comment.