Commit c444aebe authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Adapt code for fixing

"Fix scroll jumping around when horizontal rule is added"
Patch from  poboiko
parent fc734078
......@@ -208,9 +208,9 @@ void RichTextComposerControler::insertHorizontalRule()
cursor.beginEditBlock();
cursor.insertHtml(QStringLiteral("<hr>"));
cursor.insertBlock(bf, cf);
cursor.endEditBlock();
richTextComposer()->setTextCursor(cursor);
richTextComposer()->activateRichText();
cursor.endEditBlock();
}
void RichTextComposerControler::alignLeft()
......
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