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-09-03 11:13:05 +0200
commit8c8b29c3f42686bf14ed84582dd02784867527f5 (patch)
treec6180ebdf0bef259df77118697bed594657704ab /sd
parentebc7912377d048fa3c183661899f02664b641485 (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> (cherry picked from commit 438430904064e667b688275525b317fd7989af2e) Reviewed-on: https://gerrit.libreoffice.org/78414
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;