TextEditor: Fixed marking of unchanged blocks when tabs are used

Task-number: QTCREATORBUG-5712

Change-Id: I50d1cbabebece46acbe4fa3ddf1565a1a95f5c9c
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Orgad Shaneh
2011-11-29 23:15:55 +02:00
committed by Leandro Melo
parent 1cd6972ac8
commit 59ef5edcf5

View File

@@ -171,9 +171,8 @@ bool TabSettings::isIndentationClean(const QTextBlock &block) const
if (!spacesForTabs && spaceCount == m_tabSize)
return false;
} else if (c == QLatin1Char('\t')) {
if (spacesForTabs || spaceCount != m_indentSize)
if (spacesForTabs || spaceCount != 0)
return false;
spaceCount = 0;
}
++i;
}