summaryrefslogtreecommitdiffstats
path: root/src/pagedef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-10-24 17:48:18 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-10-24 21:56:27 (GMT)
commitaf5c5b37c5464afb6a2df71edf6f9e82ece75187 (patch)
treea1aeaeaa1cff1c1d8f11c064f3006a48e82f134a /src/pagedef.cpp
parent3a318681dc497127ebebd38a20a537c5dff74cc0 (diff)
downloadDoxygen-af5c5b37c5464afb6a2df71edf6f9e82ece75187.zip
Doxygen-af5c5b37c5464afb6a2df71edf6f9e82ece75187.tar.gz
Doxygen-af5c5b37c5464afb6a2df71edf6f9e82ece75187.tar.bz2
Bug 755080 - xrefitem link to list incorrect when using SHORT_NAMES
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r--src/pagedef.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/pagedef.cpp b/src/pagedef.cpp
index 18a8205..20ace23 100644
--- a/src/pagedef.cpp
+++ b/src/pagedef.cpp
@@ -34,6 +34,8 @@ PageDef::PageDef(const char *f,int l,const char *n,
m_subPageDict = new PageSDict(7);
m_pageScope = 0;
m_nestingLevel = 0;
+ static bool shortNames = Config_getBool("SHORT_NAMES");
+ m_fileName = shortNames ? convertNameToFile(n) : QCString(n);
m_showToc = FALSE;
}
@@ -61,20 +63,11 @@ QCString PageDef::getOutputFileBase() const
return m_fileName;
}
-void PageDef::setFileName(const char *name,bool dontEscape)
-{
- static bool shortNames = Config_getBool("SHORT_NAMES");
- if (shortNames && !dontEscape)
- {
- m_fileName = convertNameToFile(name);
- }
- else
- {
- m_fileName = name;
- }
+void PageDef::setFileName(const char *name)
+{
+ m_fileName = name;
}
-
void PageDef::addInnerCompound(Definition *def)
{
if (def->definitionType()==Definition::TypePage)