svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 1aa01d562118a78a3e183e35a619b5fe1a9268cf Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Thu Jan 19 18:10:11 2023 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Fri Feb 3 23:29:39 2023 +0100 Hide fill Attribute widget if fill style is none When Fill style is none we can not use fill attribute element. So It is better to hide. Change-Id: I88d5e49448040b3afa18fbf66377d254716e7415 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145817 Tested-by: Jenkins Tested-by: Pedro Silva <pedro.si...@collabora.com> Reviewed-by: Pedro Silva <pedro.si...@collabora.com> Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index 996026d1fa6c..220e3f04b829 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -876,8 +876,7 @@ void AreaPropertyPanelBase::updateFillStyle(bool bDisabled, bool bDefaultOrSet, default: case drawing::FillStyle_NONE: { - mxLbFillAttr->set_active(-1); - mxLbFillAttr->set_sensitive(false); + mxLbFillAttr->hide(); // "Use slide background" also uses FillStyle_NONE internally, // don't switch listbox in that case (will be handled by updateFillUseBackground) nPos = meLastXFS == USE_BACKGROUND ? USE_BACKGROUND : NONE;