diff options
author | David Schulz <david.schulz@qt.io> | 2020-02-28 11:32:58 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-02-28 12:47:39 +0000 |
commit | 4165d1605380e9ad15f3ddbf7c96151fd174ff34 (patch) | |
tree | f1697f43364b4786a1e856f3147af96936090b42 | |
parent | c912ee6862031b807fc82a76cc5ee95a800eb0bb (diff) | |
download | qt-creator-4165d1605380e9ad15f3ddbf7c96151fd174ff34.tar.gz |
Core: Fix rounding issue in highlight scrollbar
Fixes: QTCREATORBUG-23660
Change-Id: Ifcaf4e705a0a037c58ffedf36605b3eecfc698de
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/coreplugin/find/highlightscrollbarcontroller.cpp | 4 |
1 files 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(); |