[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Oct 17 18:35:57 UTC 2020
sfx2/source/control/thumbnailview.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1c67a2b9044abf5f7f42ca575848d686488dc050
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 17 17:00:05 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Oct 17 20:35:23 2020 +0200
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 at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list