From 1c67a2b9044abf5f7f42ca575848d686488dc050 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 17 Oct 2020 17:00:05 +0100 Subject: consistently use gnFineness scaling factor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I34b32987cc16200a163088779df41a65320deb1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104468 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sfx2/source/control/thumbnailview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index f407836fc0a4..97235330b81b 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -1537,13 +1537,13 @@ void SfxThumbnailView::CalculateItemPositions(bool bScrollBarUsed) mbScroll = mnLines > mnVisLines; mxScrolledWindow->vadjustment_set_upper((nCurCount+mnCols-1)*gnFineness/mnCols); - mxScrolledWindow->vadjustment_set_page_size(mnVisLines); + mxScrolledWindow->vadjustment_set_page_size(mnVisLines*gnFineness); if (!bScrollBarUsed) mxScrolledWindow->vadjustment_set_value(static_cast(mnFirstLine)*gnFineness); long nPageSize = mnVisLines; if ( nPageSize < 1 ) nPageSize = 1; - mxScrolledWindow->vadjustment_set_page_increment(nPageSize); + mxScrolledWindow->vadjustment_set_page_increment(nPageSize*gnFineness); if (mbAllowVScrollBar) mxScrolledWindow->set_vpolicy(mbScroll ? VclPolicyType::ALWAYS : VclPolicyType::NEVER); } -- cgit