From 4165d1605380e9ad15f3ddbf7c96151fd174ff34 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 28 Feb 2020 11:32:58 +0100 Subject: Core: Fix rounding issue in highlight scrollbar Fixes: QTCREATORBUG-23660 Change-Id: Ifcaf4e705a0a037c58ffedf36605b3eecfc698de Reviewed-by: Eike Ziller --- src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp index b9d07b70da..18c80c11cd 100644 --- a/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp +++ b/src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp @@ -127,8 +127,8 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent) const int aboveValue = m_scrollBar->value(); const int belowValue = m_scrollBar->maximum() - m_scrollBar->value(); - const int sizeDocAbove = aboveValue * int(m_highlightController->lineHeight()); - const int sizeDocBelow = belowValue * int(m_highlightController->lineHeight()); + const int sizeDocAbove = int(aboveValue * m_highlightController->lineHeight()); + const int sizeDocBelow = int(belowValue * m_highlightController->lineHeight()); const int sizeDocVisible = int(m_highlightController->visibleRange()); const int scrollBarBackgroundHeight = aboveHandleRect.height() + belowHandleRect.height(); -- cgit v1.2.1