summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-17 17:00:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-17 20:35:23 +0200
commit1c67a2b9044abf5f7f42ca575848d686488dc050 (patch)
tree00c81d7ee37044c1d01fbb0802246870d21da3b4 /sfx2
parent27756f26b17ae5c0f7bcd560c5ede84776c1c5e4 (diff)
consistently use gnFineness scaling factor
Change-Id: I34b32987cc16200a163088779df41a65320deb1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104468 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/thumbnailview.cxx4
1 files changed, 2 insertions, 2 deletions
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<long>(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);
}