QmlJS: Fix typo in new indenter.

This commit is contained in:
Christian Kamm
2010-08-10 15:13:40 +02:00
parent 1f60ac7ba0
commit 2d4b4b8295

View File

@@ -93,7 +93,7 @@ void QtStyleCodeFormatter::onEnter(int newState, int *indentDepth, int *savedInd
if (parentState.type == binding_assignment)
*savedIndentDepth = state(1).savedIndentDepth;
bool followedByData = (!lastToken && !tokenAt(tokenIndex() + 1).kind == Token::Comment);
bool followedByData = (!lastToken && tokenAt(tokenIndex() + 1).kind != Token::Comment);
if (firstToken || followedByData)
*savedIndentDepth = tokenPosition;