summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-11-25 18:56:18 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-11-25 18:56:18 (GMT)
commit79959c79850830e90aa7e00e72d3718785e29214 (patch)
tree6643370adedf0cbaac88d674978bd44175ab1475 /src/definition.cpp
parentb89fdced7a88c9222faa0d646923bd09fb1765f8 (diff)
downloadDoxygen-79959c79850830e90aa7e00e72d3718785e29214.zip
Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.gz
Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.bz2
Release-1.2.12-20011125
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 56b3edf..1125569 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -377,13 +377,17 @@ void Definition::writeSourceRefList(OutputList &ol,const char *scopeName,
{
name.prepend(scope+"::");
}
+ Definition *d = md->getOuterScope();
+ if (d==Doxygen::globalScope) d=md->getBodyDef();
if (md->getStartBodyLine()!=-1 && md->getBodyDef())
{
+ //printf("md->getBodyDef()=%p global=%p\n",md->getBodyDef(),Doxygen::globalScope);
// for HTML write a real link
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html);
QCString lineStr,anchorStr;
anchorStr.sprintf("l%05d",md->getStartBodyLine());
+ //printf("Write object link to %s\n",md->getBodyDef()->getSourceFileBase().data());
ol.writeObjectLink(0,md->getBodyDef()->getSourceFileBase(),anchorStr,name);
ol.popGeneratorState();
@@ -393,9 +397,8 @@ void Definition::writeSourceRefList(OutputList &ol,const char *scopeName,
ol.docify(name);
ol.popGeneratorState();
}
- else if (md->isLinkable() && md->getOuterScope())
+ else if (md->isLinkable() && d && d->isLinkable())
{
- Definition *d = md->getOuterScope();
// for HTML write a real link
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html);