forked from qt-creator/qt-creator
Remove call that has no effect and triggers crash in Qt later on.
The text cursor constructor with text block parameter already sets the cursor to the beginning of the line, so no need to do that explicitly. Made dropping large text crash under some circumstances. Task-number: QTCREATORBUG-8441 Change-Id: I3671d4d9db539025d4987f041371f8a0ac1d98f8 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -341,7 +341,6 @@ void TabSettings::reindentLine(QTextBlock block, int delta) const
|
||||
|
||||
QTextCursor cursor(block);
|
||||
cursor.beginEditBlock();
|
||||
cursor.movePosition(QTextCursor::StartOfBlock);
|
||||
cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor, firstNonSpace(text));
|
||||
cursor.removeSelectedText();
|
||||
cursor.insertText(indentString);
|
||||
|
||||
Reference in New Issue
Block a user