diff --git src/plugins/cpptools/cppcodeformatter.cpp src/plugins/cpptools/cppcodeformatter.cpp index 99e28529c1..697080d1c5 100644 --- src/plugins/cpptools/cppcodeformatter.cpp +++ src/plugins/cpptools/cppcodeformatter.cpp @@ -1243,9 +1243,9 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd case condition_paren_open: case member_init_nest_open: if (!lastToken) - *paddingDepth = nextTokenPosition-*indentDepth; + *paddingDepth = 0; else - addContinuationIndent(paddingDepth); + *paddingDepth = *indentDepth; break; case ternary_op: