summaryrefslogtreecommitdiffstats
path: root/src/doxygen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-02-21 20:10:10 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-02-21 20:10:10 (GMT)
commit9e8c96895318243719e7252006cf1cd86fc05597 (patch)
tree0ed3b61a39964a2282568e940915e3794c3535f9 /src/doxygen.cpp
parent725055fcd49230398f0db2a19edcb5bb5bcfd760 (diff)
parentbe5cc75ffc2e0a95ecbf0ce8d918b070c276d3e5 (diff)
downloadDoxygen-9e8c96895318243719e7252006cf1cd86fc05597.zip
Doxygen-9e8c96895318243719e7252006cf1cd86fc05597.tar.gz
Doxygen-9e8c96895318243719e7252006cf1cd86fc05597.tar.bz2
Merge pull request #273 from albert-github/feature/bug_config
Consistency in handling HTML and LaTeX in respect to header and footer
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r--src/doxygen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 667227f..35b66dc 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -10322,16 +10322,19 @@ void readConfiguration(int argc, char **argv)
}
else if (qstricmp(formatName,"latex")==0)
{
- if (optind+4<argc) // use config file to get settings
+ if (optind+4<argc || QFileInfo("Doxyfile").exists())
{
- if (!Config::instance()->parse(argv[optind+4]))
+ QCString df = optind+4<argc ? argv[optind+4] : QCString("Doxyfile");
+ if (!Config::instance()->parse(df))
{
err("error opening or reading configuration file %s!\n",argv[optind+4]);
+ cleanUpDoxygen();
exit(1);
}
Config::instance()->substituteEnvironmentVars();
Config::instance()->convertStrToVal();
Config_getString("LATEX_HEADER")="";
+ Config_getString("LATEX_FOOTER")="";
Config::instance()->check();
}
else // use default config