Skip to content
Snippets Groups Projects
Commit c91c4161 authored by mae's avatar mae
Browse files

Fix whitespace cleaning of changed blocks after undo

QTCREATORBUG-456
parent a7557176
No related branches found
No related tags found
No related merge requests found
...@@ -324,7 +324,7 @@ void BaseTextDocument::cleanWhitespace(QTextCursor& cursor, bool cleanIndentatio ...@@ -324,7 +324,7 @@ void BaseTextDocument::cleanWhitespace(QTextCursor& cursor, bool cleanIndentatio
while (block.isValid() && block != end) { while (block.isValid() && block != end) {
if (inEntireDocument || block.revision() > documentLayout->lastSaveRevision) { if (inEntireDocument || block.revision() != documentLayout->lastSaveRevision) {
QString blockText = block.text(); QString blockText = block.text();
if (int trailing = m_tabSettings.trailingWhitespaces(blockText)) { if (int trailing = m_tabSettings.trailingWhitespaces(blockText)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment