From 04840b0ea7f0fe0b87f4589d378947a395e9c5d3 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Wed, 19 May 2010 10:36:05 +0200
Subject: [PATCH] Fix text highlighting on Mac.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Broke with 8c9a97479a58447f5f94526390d14641181ed2dd

Reviewed-by: Thorbjørn Lindeijer
---
 src/plugins/texteditor/basetexteditor.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 8ed17087ec9..fca4b85065e 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -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;
-- 
GitLab