From 27026af2e353d228d104125e540127bd64034699 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 28 Jul 2010 12:37:54 +0200 Subject: C++ indenter: Fix indent of block statements in substatement blocks. Task-number: QTCREATORBUG-1919 --- src/plugins/cpptools/cppcodeformatter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index d24f3d9563..481df9b6ac 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -1227,6 +1227,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList &tokens, i *indentDepth += m_indentSize; } else if (topState.type != defun_open && topState.type != block_open + && topState.type != substatement_open && !topWasMaybeElse) { *indentDepth = topState.savedIndentDepth; } -- cgit v1.2.1