diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-07-09 19:45:37 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-07-09 19:45:37 (GMT) |
commit | 56bc9bda61e06b9bd6da5aa58083e93a3b55a465 (patch) | |
tree | 2dbdf12fc6696bf3a9d133e8e23ef223690e919a /addon/configgen/config_templ.l | |
parent | adb81f79061729efc28e71c1474c35e21283b049 (diff) | |
download | Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.zip Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.tar.gz Doxygen-56bc9bda61e06b9bd6da5aa58083e93a3b55a465.tar.bz2 |
Release-1.1.5_20000709
Diffstat (limited to 'addon/configgen/config_templ.l')
-rw-r--r-- | addon/configgen/config_templ.l | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l index e3c6b03..6ba22a6 100644 --- a/addon/configgen/config_templ.l +++ b/addon/configgen/config_templ.l @@ -326,9 +326,9 @@ void configStrToVal() "Using the default of 1024 pixels!\n"); width=1024; } - else if (width<250) // clip to lower bound + else if (width<100) // clip to lower bound { - width=250; + width=100; } else if (width>30000) // clip to upper bound { @@ -351,9 +351,9 @@ void configStrToVal() "Using the default of 1024 pixels!\n"); height=1024; } - else if (height<250) // clip to lower bound + else if (height<100) // clip to lower bound { - height=250; + height=100; } else if (height>30000) // clip to upper bound { @@ -625,6 +625,28 @@ void checkConfig() err("Could not create output directory %s\n",Config::manOutputDir.data()); exit(1); } + + // expand the relative stripFromPath values + char *sfp = Config::stripFromPath.first(); + while (sfp) + { + QCString path = sfp; + if (path.at(0)!='/' && (path.length()<=2 || path.at(1)!=':')) + { + QFileInfo fi(path); + if (fi.exists() && fi.isDir()) + { + int i = Config::stripFromPath.at(); + Config::stripFromPath.remove(); + if (Config::stripFromPath.at()==i) // did not remove last item + Config::stripFromPath.insert(i,fi.absFilePath()+"/"); + else + Config::stripFromPath.append(fi.absFilePath()+"/"); + } + } + sfp = Config::stripFromPath.next(); + } + // Test to see if HTML header is valid if (!Config::headerFile.isEmpty()) |