summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2023-01-19 18:10:11 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-01-20 09:51:23 +0000
commit48e84907845daaf633991f88efb85d93c058a88d (patch)
tree9af40ecfba1164fc555ce401535087d09110e7e4 /svx/source/sidebar
parentb70eee2d394dd7249c2de0cb41ccc47f80a05f8f (diff)
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.silva@collabora.com> Reviewed-by: Pedro Silva <pedro.silva@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
index deac0eb9dcca..e54002ef9589 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;