minor fix for astyle

This commit is contained in:
Roy Qu 2024-03-31 18:10:17 +08:00
parent 8eee3de831
commit c1eb9a1a62
1 changed files with 1 additions and 2 deletions

View File

@ -5045,7 +5045,7 @@ QStringList Settings::CodeFormatter::getArguments()
result.append(QString("--max-continuation-indent=%1").arg(mMaxContinuationIndent));
if (mBreakBlocks)
result.append("--break-blocks");
if (mBreakBlocksAll)
else if (mBreakBlocksAll)
result.append("--break-blocks=all");
if (mPadOper)
result.append("--pad-oper");
@ -5131,7 +5131,6 @@ QStringList Settings::CodeFormatter::getArguments()
if (mBreakAfterLogical)
result.append("--break-after-logical");
}
return result;
}