summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-05-31 08:38:23 (GMT)
committerGitHub <noreply@github.com>2020-05-31 08:38:23 (GMT)
commit04035ff49d3e59996bdf7dca9685c8cdaf8a61de (patch)
tree92f80c5c5fd445ff34981b9120da0965b31d474d
parent1705a1442dfa83d6c442bb45ed0d6e76f135ee5a (diff)
parent1bdc70103de256aa23a8afc54c9ea022ce790141 (diff)
downloadDoxygen-04035ff49d3e59996bdf7dca9685c8cdaf8a61de.zip
Doxygen-04035ff49d3e59996bdf7dca9685c8cdaf8a61de.tar.gz
Doxygen-04035ff49d3e59996bdf7dca9685c8cdaf8a61de.tar.bz2
Merge pull request #7814 from albert-github/feature/bug_empty_setting
Empty enum setting in configuration file
-rw-r--r--src/configimpl.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index d07e25c..da94484 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -234,6 +234,11 @@ void ConfigBool::convertStrToVal()
void ConfigEnum::convertStrToVal()
{
+ if (m_value.isEmpty())
+ {
+ m_value = m_defValue;
+ return;
+ }
QCString val = m_value.stripWhiteSpace().lower();
const char *s=m_valueRange.first();
while (s)