summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-12 19:11:27 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-12 19:11:27 (GMT)
commit4d5ddf7777b833969eeac30ee313484eb259f751 (patch)
tree5f274315fc73ef69f4207a867964425b5de0ac1d /src/markdown.cpp
parentc5ae197818ae4d5f669a32981060779edbc8a376 (diff)
downloadDoxygen-4d5ddf7777b833969eeac30ee313484eb259f751.zip
Doxygen-4d5ddf7777b833969eeac30ee313484eb259f751.tar.gz
Doxygen-4d5ddf7777b833969eeac30ee313484eb259f751.tar.bz2
Bug 720092 - USE_MDFILE_AS_MAINPAGE doesn't work if full path is specified.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index 2a6d9d3..ac824f4 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -2292,9 +2292,13 @@ void MarkdownFileParser::parseInput(const char *fileName,
QCString titleFn = QFileInfo(fileName).baseName().utf8();
QCString fn = QFileInfo(fileName).fileName().utf8();
static QCString mdfileAsMainPage = Config_getString("USE_MDFILE_AS_MAINPAGE");
- if (id.isEmpty()) id = markdownFileNameToId(fileName);
+ if (id.isEmpty()) id = markdownFileNameToId(fileName);
if (title.isEmpty()) title = titleFn;
- if (fn==mdfileAsMainPage)
+ if (!mdfileAsMainPage.isEmpty() &&
+ (fn==mdfileAsMainPage || // name reference
+ QFileInfo(fileName).absFilePath()==
+ QFileInfo(mdfileAsMainPage).absFilePath()) // file reference with path
+ )
{
docs.prepend("@mainpage\n");
}