Fix hover line rendering for ResourceId-only rich resource text painting

This commit is contained in:
baldurk
2020-01-29 11:48:04 +00:00
parent 291bec7091
commit 066de4d1d0
+1 -1
View File
@@ -509,7 +509,7 @@ void RichResourceTextPaint(const QWidget *owner, QPainter *painter, QRect rect,
if(mouseOver && textRect.contains(mousePos) && valid)
{
int underline_y = textRect.bottom() + margin;
int underline_y = textRect.bottom() - margin;
painter->setPen(QPen(palette.brush(QPalette::WindowText), 1.0));
painter->drawLine(QPoint(textRect.left(), underline_y), QPoint(textRect.right(), underline_y));