forked from qt-creator/qt-creator
Fix whitespace cleaning of changed blocks after undo
QTCREATORBUG-456
This commit is contained in:
@@ -324,7 +324,7 @@ void BaseTextDocument::cleanWhitespace(QTextCursor& cursor, bool cleanIndentatio
|
||||
|
||||
while (block.isValid() && block != end) {
|
||||
|
||||
if (inEntireDocument || block.revision() > documentLayout->lastSaveRevision) {
|
||||
if (inEntireDocument || block.revision() != documentLayout->lastSaveRevision) {
|
||||
|
||||
QString blockText = block.text();
|
||||
if (int trailing = m_tabSettings.trailingWhitespaces(blockText)) {
|
||||
|
||||
Reference in New Issue
Block a user