Commit 04840b0e authored by con's avatar con
Browse files

Fix text highlighting on Mac.

Broke with 8c9a9747

Reviewed-by: Thorbjørn Lindeijer
parent b7b50eda
......@@ -2467,8 +2467,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
const int selStart = range.cursor.selectionStart() - blpos;
const int selEnd = range.cursor.selectionEnd() - blpos;
if (selStart <= bllen && selEnd >= 0
&& selEnd >= selStart
&& !range.format.hasProperty(QTextFormat::FullWidthSelection)) {
&& selEnd >= selStart) {
QTextLayout::FormatRange o;
o.start = selStart;
o.length = selEnd - selStart;
......
Supports Markdown
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