Commit 5b49dc9a authored by Henrik Abelsson's avatar Henrik Abelsson Committed by Thorbjørn Lindeijer

Fixed wrapping to not take into account the indent level twice

Reviewed-by: Thorbjørn Lindeijer
parent 9e2f12c7
......@@ -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);
......
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