forked from qt-creator/qt-creator
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:
@@ -2700,7 +2700,7 @@ public:
|
||||
+ values.join(QLatin1String(":\nbreak;\ncase "))
|
||||
+ QLatin1String(":\nbreak;"));
|
||||
currentFile->setChangeSet(changes);
|
||||
currentFile->appendIndentRange(currentFile->range(compoundStatement));
|
||||
currentFile->appendIndentRange(ChangeSet::Range(start, start + 1));
|
||||
currentFile->apply();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user