Commit ebb2fe6d authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 735001 - No output for markdown pages with duplicate label title (different anchor)

parent 4766fdba
...@@ -1706,7 +1706,7 @@ void writeOneLineHeaderOrRuler(GrowBuf &out,const char *data,int size) ...@@ -1706,7 +1706,7 @@ void writeOneLineHeaderOrRuler(GrowBuf &out,const char *data,int size)
out.addStr(" "); out.addStr(" ");
out.addStr(header); out.addStr(header);
out.addStr("\n"); out.addStr("\n");
SectionInfo *si = Doxygen::sectionDict->find(header); SectionInfo *si = Doxygen::sectionDict->find(id);
if (si) if (si)
{ {
if (si->lineNr != -1) if (si->lineNr != -1)
...@@ -1725,7 +1725,7 @@ void writeOneLineHeaderOrRuler(GrowBuf &out,const char *data,int size) ...@@ -1725,7 +1725,7 @@ void writeOneLineHeaderOrRuler(GrowBuf &out,const char *data,int size)
{ {
g_current->anchors->append(si); g_current->anchors->append(si);
} }
Doxygen::sectionDict->append(header,si); Doxygen::sectionDict->append(id,si);
} }
} }
else else
...@@ -2076,7 +2076,7 @@ static QCString processBlocks(const QCString &s,int indent) ...@@ -2076,7 +2076,7 @@ static QCString processBlocks(const QCString &s,int indent)
out.addStr(" "); out.addStr(" ");
out.addStr(header); out.addStr(header);
out.addStr("\n\n"); out.addStr("\n\n");
SectionInfo *si = Doxygen::sectionDict->find(header); SectionInfo *si = Doxygen::sectionDict->find(id);
if (si) if (si)
{ {
if (si->lineNr != -1) if (si->lineNr != -1)
...@@ -2096,7 +2096,7 @@ static QCString processBlocks(const QCString &s,int indent) ...@@ -2096,7 +2096,7 @@ static QCString processBlocks(const QCString &s,int indent)
{ {
g_current->anchors->append(si); g_current->anchors->append(si);
} }
Doxygen::sectionDict->append(header,si); Doxygen::sectionDict->append(id,si);
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment