ui: Fixed line numbers disappearing on hover on Linux

This commit is contained in:
Andreas Stallinger
2019-01-14 18:27:19 +01:00
parent e3c9f12012
commit 711cd6ce1c
+5 -1
View File
@@ -238,7 +238,11 @@ void QtCodeArea::lineNumberAreaPaintEvent(QPaintEvent *event)
}
const int drawAreaTop = event->rect().top();
const int drawAreaBottom = event->rect().bottom() - scrollBarHeight;
int drawAreaBottom = event->rect().bottom() + 1;
if (drawAreaBottom > height() - scrollBarHeight)
{
drawAreaBottom = height() - scrollBarHeight;
}
while (block.isValid() && top <= drawAreaBottom)
{