Commit 01db67fd authored by Eike Ziller's avatar Eike Ziller
Browse files

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: default avatarDavid Schulz <david.schulz@digia.com>
parent 06b5f62a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment