X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/c44dc6a4c9abc168d49575185d8b50004612aa59..826a8db1c8d7f85851cfe24192dd77d089a6c0c1:/bk_whlp.c diff --git a/bk_whlp.c b/bk_whlp.c index d11fd22..b146f94 100644 --- a/bk_whlp.c +++ b/bk_whlp.c @@ -97,8 +97,8 @@ void whlp_backend(paragraph *sourceform, keywordlist *keywords, filename = dupstr("output.hlp"); for (p = sourceform; p; p = p->next) { p->private_data = NULL; - if (p->type == para_Config && p->parent) { - if (!ustricmp(p->keyword, L"winhelp-topic")) { + if (p->type == para_Config) { + if (p->parent && !ustricmp(p->keyword, L"winhelp-topic")) { char *topicname; whlp_convert(uadv(p->keyword), 0, &topicname, 0); /* Store the topic name in the private_data field of the