diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index 41e70725f77..203e73057eb 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -1342,7 +1342,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList &tokens, i if (topState.type == multiline_comment_start || topState.type == multiline_comment_cont) { if (!tokens.isEmpty()) { - *indentDepth = tokens.at(0).begin(); + *indentDepth = column(tokens.at(0).begin()); return; } }