diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-02-04 18:02:44 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-02-04 18:02:44 (GMT) |
commit | 1b90a1cf58b6b94d00e28d8212828956e8f9d177 (patch) | |
tree | 0079dfe633e79bae80c0743850c85fb68f276f60 /addon/configgen/config_templ.l | |
parent | f676cb79536e8d4d7a7dc2fb83b757065939eefb (diff) | |
download | Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.zip Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.gz Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.bz2 |
Release-1.2.5
Diffstat (limited to 'addon/configgen/config_templ.l')
-rw-r--r-- | addon/configgen/config_templ.l | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l index 69886d7..6b6b248 100644 --- a/addon/configgen/config_templ.l +++ b/addon/configgen/config_templ.l @@ -519,6 +519,31 @@ void configStrToVal() } Config::maxDotGraphHeight=height; } + + if (maxInitLinesString.isEmpty()) + { + Config::maxInitLines=30; + } + else + { + bool ok; + int maxLines =maxInitLinesString.toInt(&ok); + if (!ok) + { + warn_cont("Warning: argument of MAX_DOT_GRAPH_WIDTH is not a valid number in the range [100..30000]!\n" + "Using the default of 1024 pixels!\n"); + maxLines=30; + } + else if (maxLines<0) // clip to lower bound + { + maxLines=0; + } + else if (maxLines>10000) // clip to upper bound + { + maxLines=10000; + } + Config::maxInitLines=maxLines; + } } static void substEnvVarsInString(QCString &s) |