summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-06-22 17:34:00 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-06-23 10:02:57 +0200
commit5491a82854e3e6dd2dbb4b0012cb4bbeb4ee22e0 (patch)
tree5d07d6ee704cdc92fe20cfba5d150459ae5af9e4
parent26fbf6eef19e2746c28d2f1584505d5e10a295cc (diff)
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.mehrbrodt@allotropia.de>
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanelBase.cxx6
1 files changed, 4 insertions, 2 deletions
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: