From 7d75b0a2a7d4423f2b35a659172393961f699b74 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 2 Oct 2024 14:00:15 +0200 Subject: [PATCH] TextEditor: Fix line annotations for multiline text Fixes: QTCREATORBUG-29951 Change-Id: Ie6bd70b46ae05bd3aaa7859bc872a8651a106ab0 Reviewed-by: David Schulz --- src/plugins/texteditor/textmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp index a7a7288d8ce..32fabea7fcd 100644 --- a/src/plugins/texteditor/textmark.cpp +++ b/src/plugins/texteditor/textmark.cpp @@ -177,7 +177,7 @@ TextMark::AnnotationRects TextMark::annotationRects(const QRectF &boundingRect, const qreal fadeOutOffset) const { AnnotationRects rects; - rects.text = lineAnnotation(); + rects.text = lineAnnotation().simplified(); if (rects.text.isEmpty()) return rects; rects.fadeInRect = boundingRect;