diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-17 12:38:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-17 16:29:44 +0200 |
commit | eb162ea75724269ffc6b97d7f31d96aa1cbd6da8 (patch) | |
tree | 3743e9f03eafd451a4ac637c598328a355769647 /svtools | |
parent | d372c0be9d7f8156a3892d6eed7c5790a4bf87cc (diff) |
tdf#136737 grid in change icon dialog ends up oversized
Change-Id: Ib3d28fc967bf5e1b95d71ebe42e1fc540ea91ac3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102923
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-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 2eb875e55d53..8d0c1713c0e4 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -554,6 +554,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()); @@ -562,6 +564,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()); |