Commit 8792fcfd authored by Christian Kamm's avatar Christian Kamm

C++ indenter: Fix preserving indent in comments with tabs.

Task-number: QTCREATORBUG-6151
Change-Id: I584666441dce05af9a91cd28812b230c36bdd830
Reviewed-on: http://codereview.qt-project.org/5318Reviewed-by: default avatarChristian Kamm <christian.d.kamm@nokia.com>
parent 7bfde77d
......@@ -1342,7 +1342,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList<CPlusPlus::Token> &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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment