diff options
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index f221dd6..098c58e 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -2933,10 +2933,9 @@ void MemberDef::writeEnumDeclaration(OutputList &typeDecl, typeDecl.writeChar(' '); } - if (numVisibleEnumValues>0) + uint enumValuesPerLine = (uint)Config_getInt("ENUM_VALUES_PER_LINE"); + if (numVisibleEnumValues>0 && enumValuesPerLine>0) { - uint enumValuesPerLine = (uint)Config_getInt("ENUM_VALUES_PER_LINE"); - if (enumValuesPerLine==0) enumValuesPerLine=1; typeDecl.docify("{ "); if (fmdl) { |