summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormae <qtc-committer@nokia.com>2008-12-09 17:43:04 +0100
committermae <qtc-committer@nokia.com>2008-12-09 17:43:04 +0100
commit98f35da62952bd7b4a4514b821395daa9b9f2bd2 (patch)
tree738740a3cd5fd57b4e04a0ed7c53c9893a8964c1
parent4c20a8afc756346b44e8f185974caf491631a012 (diff)
downloadqt-creator-98f35da62952bd7b4a4514b821395daa9b9f2bd2.tar.gz
fix TabSettings::isIndentationClean(), it had false positives
-rw-r--r--src/plugins/texteditor/tabsettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/tabsettings.cpp b/src/plugins/texteditor/tabsettings.cpp
index f87ab2ac8c..19145a7cd9 100644
--- a/src/plugins/texteditor/tabsettings.cpp
+++ b/src/plugins/texteditor/tabsettings.cpp
@@ -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)