Fixed wrapping to not take into account the indent level twice

Reviewed-by: Thorbjørn Lindeijer
This commit is contained in:
Henrik Abelsson
2009-07-21 10:37:00 +02:00
committed by Thorbjørn Lindeijer
parent 9e2f12c737
commit 5b49dc9ae8

View File

@@ -3951,7 +3951,7 @@ void BaseTextEditor::rewrapParagraph()
if (!currentWord.isEmpty()) {
currentLength += currentWord.length() + 1;
if (currentLength > paragraphWidth - indentLevel) {
if (currentLength > paragraphWidth) {
currentLength = currentWord.length() + 1 + indentLevel;
result.append(QChar::ParagraphSeparator);
result.append(spacing);