[graphics/drawy/gsoc2026] src/gui/item: fix: double underline bug with selection
Abdelhadi Wael <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 3a660509f919a7923fab910e5792a30d928026cc by Abdelhadi Wael.
Committed on 21/07/2026 at 23:55.
Pushed by mlaurent into branch 'gsoc2026'.
fix: double underline bug with selection
M +1 -0 src/gui/item/text.cpp
https://invent.kde.org/graphics/drawy/-/commit/3a660509f919a7923fab910e5792a30d928026cc
diff --git a/src/gui/item/text.cpp b/src/gui/item/text.cpp
index ff5bf59c..4a16a007 100644
--- a/src/gui/item/text.cpp
+++ b/src/gui/item/text.cpp
@@ -93,6 +93,7 @@ void TextItem::draw(QPainter &painter, const QPointF &offset)
QAbstractTextDocumentLayout::Selection selection;
selection.cursor = m_cursor;
selection.format.setBackground(Common::selectionBackgroundColor);
+ selection.format.setFontUnderline(false);
ctx.selections.append(selection);
}