Fix crash in submit editor

Task-number: QTCREATORBUG-6657

Change-Id: I1b7b9f6e84b4e81ed1c81c70c9a0b4e3dce360e3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
This commit is contained in:
Daniel Teske
2011-12-02 14:56:00 +01:00
parent 1166dcd441
commit 0bec54d180

View File

@@ -323,7 +323,7 @@ static QString wrappedText(const QTextEdit *e)
rc += cursor.selectedText();
rc += newLine;
cursor.movePosition(QTextCursor::EndOfLine); // Mac needs it
cursor.movePosition(QTextCursor::Right);
cursor.movePosition(QTextCursor::NextCharacter);
}
return rc;
}