diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-17 12:38:41 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-09-29 12:00:41 +0200 |
commit | e397c3775303fc2eb850ae8d1cb1ab2cc271a446 (patch) | |
tree | 997562259173ad4de574d4ac88db1de0db649fcc | |
parent | 38fa146e003577f0bc06818db8cfb25fc9a6a347 (diff) |
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@redhat.com>
(cherry picked from commit d9ae83e596e94c4d4967c5de653c2060b0648c78)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102929
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | svtools/source/control/valueset.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |