forked from qt-creator/qt-creator
TextEditor: skip painting annotations for disabled text marks
Change-Id: Id05bfe5bd120b2bbb2e2b70fb29a99b8c430e459 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4157,6 +4157,8 @@ void TextEditorWidgetPrivate::updateLineAnnotation(const PaintEventData &data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const TextMark *mark : qAsConst(marks)) {
|
for (const TextMark *mark : qAsConst(marks)) {
|
||||||
|
if (!mark->isVisible())
|
||||||
|
continue;
|
||||||
boundingRect = QRectF(x, boundingRect.top(), q->viewport()->width() - x, boundingRect.height());
|
boundingRect = QRectF(x, boundingRect.top(), q->viewport()->width() - x, boundingRect.height());
|
||||||
if (boundingRect.isEmpty())
|
if (boundingRect.isEmpty())
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user