[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - svtools/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 17 14:27:55 UTC 2020


 svtools/source/control/valueset.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d9ae83e596e94c4d4967c5de653c2060b0648c78
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 17 12:38:41 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 17 16:27:22 2020 +0200

    tdf#136737 grid in change icon dialog ends up oversized
    
    Change-Id: Ib3d28fc967bf5e1b95d71ebe42e1fc540ea91ac3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102927
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index dde904d2b9a2..4070630fe44a 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -541,6 +541,8 @@ void ValueSet::RemoveItem( sal_uInt16 nItemId )
 
 void ValueSet::TurnOffScrollBar()
 {
+    if (mxScrolledWindow->get_vpolicy() == VclPolicyType::NEVER)
+        return;
     mxScrolledWindow->set_vpolicy(VclPolicyType::NEVER);
     weld::DrawingArea* pDrawingArea = GetDrawingArea();
     Size aPrefSize(pDrawingArea->get_preferred_size());
@@ -549,6 +551,8 @@ void ValueSet::TurnOffScrollBar()
 
 void ValueSet::TurnOnScrollBar()
 {
+    if (mxScrolledWindow->get_vpolicy() == VclPolicyType::ALWAYS)
+        return;
     mxScrolledWindow->set_vpolicy(VclPolicyType::ALWAYS);
     weld::DrawingArea* pDrawingArea = GetDrawingArea();
     Size aPrefSize(pDrawingArea->get_preferred_size());


More information about the Libreoffice-commits mailing list