CppEditor: Do not re-indent existing code

... in "Complete Switch Statement" quickfix.

Fixes: QTCREATORBUG-12445
Change-Id: Ic168f5b434b81d2b5f5a0d344d6c6786a75d07a5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-08-06 10:54:17 +02:00
parent 84e4b3af31
commit d9eb3dc5a4
2 changed files with 3 additions and 3 deletions

View File

@@ -2700,7 +2700,7 @@ public:
+ values.join(QLatin1String(":\nbreak;\ncase ")) + values.join(QLatin1String(":\nbreak;\ncase "))
+ QLatin1String(":\nbreak;")); + QLatin1String(":\nbreak;"));
currentFile->setChangeSet(changes); currentFile->setChangeSet(changes);
currentFile->appendIndentRange(currentFile->range(compoundStatement)); currentFile->appendIndentRange(ChangeSet::Range(start, start + 1));
currentFile->apply(); currentFile->apply();
} }