svx/source/sidebar/area/AreaPropertyPanelBase.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 5491a82854e3e6dd2dbb4b0012cb4bbeb4ee22e0
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Wed Jun 22 17:34:00 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Jun 23 10:02:57 2022 +0200

    tdf#128150 Disable UseSlideBackground item when setting style back to None
    
    from Sidebar
    
    Change-Id: I883330ac7323c4758ca8cbd46f4567a2ea780fc1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136290
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx 
b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
index 801970514854..f94264c210fa 100644
--- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
+++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx
@@ -256,8 +256,10 @@ IMPL_LINK_NOARG(AreaPropertyPanelBase, SelectFillTypeHdl, 
weld::ComboBox&, void)
             mxBmpImport->hide();
             mxLbFillAttr->set_sensitive(false);
 
-            // #i122676# need to call a single SID_ATTR_FILL_STYLE change
-            setFillStyle(XFillStyleItem(drawing::FillStyle_NONE));
+            const XFillStyleItem aXFillStyleItem(drawing::FillStyle_NONE);
+            // Need to disable the XFillUseSlideBackgroundItem
+            const XFillUseSlideBackgroundItem 
aXFillUseSlideBackgroundItem(false);
+            setFillUseBackground(&aXFillStyleItem, 
aXFillUseSlideBackgroundItem);
             break;
         }
         case SOLID:

Reply via email to