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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 29 10:01:08 UTC 2020


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

New commits:
commit e397c3775303fc2eb850ae8d1cb1ab2cc271a446
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 17 12:38:41 2020 +0100
Commit:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Tue Sep 29 12:00:41 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>
    (cherry picked from commit d9ae83e596e94c4d4967c5de653c2060b0648c78)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102929
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.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