From cfc10eb0bc5a1e826401d66e5b2bd71fa185085c Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Mon, 3 Aug 2009 18:13:37 +0200
Subject: [PATCH] Fix for block highlighting on the folding bar: cover the
 entire paragraph, even when it has several lines.

---
 src/plugins/texteditor/basetexteditor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index fcc57f11380..26abcf002dc 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -2440,7 +2440,7 @@ void BaseTextEditor::extraAreaPaintEvent(QPaintEvent *e)
 
                 int boxWidth = collapseBoxWidth(fm);
                 if (hovered) {
-                    QRect box = QRect(extraAreaWidth + 1, top, boxWidth - 2, fmLineSpacing + 2);
+                    QRect box = QRect(extraAreaWidth + 1, top, boxWidth - 2, bottom - top);
                     drawRectBox(&painter, box, drawStart, drawEnd, pal);
                 }
 
-- 
GitLab