From 2d4b4b8295222dd1f3874572ec64a213ba6c2f73 Mon Sep 17 00:00:00 2001
From: Christian Kamm <christian.d.kamm@nokia.com>
Date: Tue, 10 Aug 2010 15:13:40 +0200
Subject: [PATCH] QmlJS: Fix typo in new indenter.

---
 src/plugins/qmljseditor/qmljseditorcodeformatter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/qmljseditor/qmljseditorcodeformatter.cpp b/src/plugins/qmljseditor/qmljseditorcodeformatter.cpp
index 175e384a596..638b4fdd730 100644
--- a/src/plugins/qmljseditor/qmljseditorcodeformatter.cpp
+++ b/src/plugins/qmljseditor/qmljseditorcodeformatter.cpp
@@ -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;
 
-- 
GitLab