diff --git a/src/plugins/texteditor/tabsettings.cpp b/src/plugins/texteditor/tabsettings.cpp index d24254649662b3b5283c2243a62e370810a3afd5..96f10eedbd961c85bccae5bc2decf51d49499515 100644 --- a/src/plugins/texteditor/tabsettings.cpp +++ b/src/plugins/texteditor/tabsettings.cpp @@ -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; }