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:
Eike Ziller
2013-02-27 16:02:10 +01:00
parent 06b5f62a61
commit 01db67fd97

View File

@@ -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);