fix TabSettings::isIndentationClean(), it had false positives

This commit is contained in:
mae
2008-12-09 17:43:04 +01:00
parent 4c20a8afc7
commit 98f35da629

View File

@@ -132,7 +132,7 @@ bool TabSettings::isIndentationClean(const QString &text) const
if (c == QLatin1Char(' ')) {
++spaceCount;
if (spaceCount == m_tabSize)
if (!m_spacesForTabs && spaceCount == m_tabSize)
return false;
} else if (c == QLatin1Char('\t')) {
if (m_spacesForTabs || spaceCount != m_indentSize)