diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-10-06 19:28:00 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-10-06 21:39:40 (GMT) |
commit | 4fc5b2b154331fbf35800935889f1d0372334f0a (patch) | |
tree | a87e075516435e0d855a4af6aecb356a517c4b33 /src/config.l | |
parent | 983507e0a65e5c2d51209740a89311e122e4f389 (diff) | |
download | Doxygen-4fc5b2b154331fbf35800935889f1d0372334f0a.zip Doxygen-4fc5b2b154331fbf35800935889f1d0372334f0a.tar.gz Doxygen-4fc5b2b154331fbf35800935889f1d0372334f0a.tar.bz2 |
Bug 707713 - Add support for dia diagrams
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l index 19f0267..cc0a2f8 100644 --- a/src/config.l +++ b/src/config.l @@ -1311,7 +1311,30 @@ void Config::check() mscgenPath=""; } - + // check dia path + QCString &diaPath = Config_getString("DIA_PATH"); + if (!diaPath.isEmpty()) + { + QFileInfo dp(diaPath+"/dia"+portable_commandExtension()); + if (!dp.exists() || !dp.isFile()) + { + config_err("Warning: dia could not be found at %s\n",diaPath.data()); + diaPath=""; + } + else + { + diaPath=dp.dirPath(TRUE).utf8()+"/"; +#if defined(_WIN32) // convert slashes + uint i=0,l=diaPath.length(); + for (i=0;i<l;i++) if (diaPath.at(i)=='/') diaPath.at(i)='\\'; +#endif + } + } + else // make sure the string is empty but not null! + { + diaPath=""; + } + // check input QStrList &inputSources=Config_getList("INPUT"); if (inputSources.count()==0) |