Navigation Menu

Skip to content

Commit

Permalink
issue #8750: Crashes with 1.9.2 on Ubuntu 21.04
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Oct 15, 2021
1 parent 04d9e4c commit 1a2744d
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/util.cpp
Expand Up @@ -4793,10 +4793,6 @@ PageDef *addRelatedPage(const QCString &name,const QCString &ptitle,
pd->setRefItems(sli);
newPage = false;
}
else if (pd) // we are from a tag file
{
Doxygen::pageLinkedMap->del(name);
}

if (newPage) // new page
{
Expand All @@ -4807,9 +4803,21 @@ PageDef *addRelatedPage(const QCString &name,const QCString &ptitle,
baseName=baseName.left(baseName.length()-Doxygen::htmlFileExtension.length());

//printf("Appending page '%s'\n",qPrint(baseName));
pd = Doxygen::pageLinkedMap->add(baseName,
std::unique_ptr<PageDef>(
createPageDef(fileName,docLine,baseName,doc,title)));
if (pd) // replace existing page
{
pd->setDocumentation(doc,fileName,docLine);
pd->setFileName(::convertNameToFile(baseName,FALSE,TRUE));
pd->setShowLineNo(FALSE);
pd->setNestingLevel(0);
pd->setPageScope(0);
pd->setTitle(title);
}
else // newPage
{
pd = Doxygen::pageLinkedMap->add(baseName,
std::unique_ptr<PageDef>(
createPageDef(fileName,docLine,baseName,doc,title)));
}
pd->setBodySegment(startLine,startLine,-1);

pd->setRefItems(sli);
Expand Down

0 comments on commit 1a2744d

Please sign in to comment.