From 438430904064e667b688275525b317fd7989af2e Mon Sep 17 00:00:00 2001 From: Gülşah Köse Date: Sat, 31 Aug 2019 00:24:40 +0300 Subject: tdf#126656 Remove unnecessary items from itemset. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I62fc660ea061fe9665e0166a08871ba0a592fc41 Reviewed-on: https://gerrit.libreoffice.org/78332 Tested-by: Jenkins Reviewed-by: Gülşah Köse --- sd/source/ui/func/fuolbull.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx index 7c9b8657f0f2..cdd8fd33ece9 100644 --- a/sd/source/ui/func/fuolbull.cxx +++ b/sd/source/ui/func/fuolbull.cxx @@ -81,8 +81,14 @@ void FuBulletAndPosition::DoExecute( SfxRequest& rReq ) SfxItemSet aEditAttr( mpDoc->GetPool() ); mpView->GetAttributes( aEditAttr ); - SfxItemSet aNewAttr( mpViewShell->GetPool(), - svl::Items{} ); + static const sal_uInt16 aAttrMap[] = + { + EE_PARA_NUMBULLET, + EE_PARA_BULLET, + 0 + }; + + SfxItemSet aNewAttr( mpViewShell->GetPool(), aAttrMap ); aNewAttr.Put( aEditAttr, false ); auto pView = mpView; -- cgit