summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-10-09 08:04:33 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-10-09 08:04:33 (GMT)
commit8a48f6c3f4827171edf41a40bfdbc03e53d9be6b (patch)
treefac3e1fdcea37381cbfa5042e20155883cf97372 /src/doxygen.cpp
parent6dbef217c477d43fb61e90b429531ee109bf0e75 (diff)
downloadDoxygen-8a48f6c3f4827171edf41a40bfdbc03e53d9be6b.zip
Doxygen-8a48f6c3f4827171edf41a40bfdbc03e53d9be6b.tar.gz
Doxygen-8a48f6c3f4827171edf41a40bfdbc03e53d9be6b.tar.bz2
Release-1.7.2
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 4d78e16..3efe75d 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -8628,6 +8628,7 @@ static void parseFiles(Entry *root,EntryNav *rootNav)
static QCString resolveSymlink(QCString path)
{
int sepPos=0;
+ int oldPos=0;
QFileInfo fi;
QDict<void> nonSymlinks;
QDict<void> known;
@@ -8651,7 +8652,8 @@ static QCString resolveSymlink(QCString path)
if (fi.isSymLink())
{
QString target = fi.readLink();
- if (QFileInfo(target).isRelative())
+ bool isRelative = QFileInfo(target).isRelative();
+ if (isRelative)
{
target = QDir::cleanDirPath(oldPrefix+"/"+target.data());
}
@@ -8667,12 +8669,22 @@ static QCString resolveSymlink(QCString path)
sepPos = 0;
if (known.find(result)) return QCString(); // recursive symlink!
known.insert(result,(void*)0x8);
+ if (isRelative)
+ {
+ sepPos = oldPos;
+ }
+ else // link to absolute path
+ {
+ sepPos = 0;
+ oldPrefix = "/";
+ }
}
else
{
nonSymlinks.insert(prefix,(void*)0x8);
+ oldPrefix = prefix;
}
- oldPrefix = prefix;
+ oldPos = sepPos;
}
}
while (sepPos!=-1);
@@ -10473,7 +10485,8 @@ void generateOutput()
//writeDirDependencyGraph(Config_getString("HTML_OUTPUT"));
- if (Doxygen::formulaList.count()>0 && Config_getBool("GENERATE_HTML"))
+ if (Doxygen::formulaList.count()>0 && Config_getBool("GENERATE_HTML")
+ && !Config_getBool("USE_MATHJAX"))
{
msg("Generating bitmaps for formulas in HTML...\n");
Doxygen::formulaList.generateBitmaps(Config_getString("HTML_OUTPUT"));