summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2019-08-31 00:24:40 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2019-08-31 00:21:52 +0200
commit438430904064e667b688275525b317fd7989af2e (patch)
tree2f868d75f4834259879beb5354481e1f7befc81a /sd
parent69030664ddce60d027888b65fd25e27a5ced2eff (diff)
tdf#126656 Remove unnecessary items from itemset.
Change-Id: I62fc660ea061fe9665e0166a08871ba0a592fc41 Reviewed-on: https://gerrit.libreoffice.org/78332 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuolbull.cxx10
1 files changed, 8 insertions, 2 deletions
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<EE_ITEMS_START, EE_ITEMS_END>{} );
+ static const sal_uInt16 aAttrMap[] =
+ {
+ EE_PARA_NUMBULLET,
+ EE_PARA_BULLET,
+ 0
+ };
+
+ SfxItemSet aNewAttr( mpViewShell->GetPool(), aAttrMap );
aNewAttr.Put( aEditAttr, false );
auto pView = mpView;