diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-31 15:28:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-31 20:20:52 +0100 |
commit | 4b1acf7d1a0a2515a5f781b702c22c6233caecc8 (patch) | |
tree | fb43c0058d4c9cc26542bf83d226697428a5db52 /svx | |
parent | ba85e9f54809dd2c7eb817ead90f9fac0add6e06 (diff) |
no need to call GetObjectItemSet inside ForceDefaultAttributes
ForceDefaultAttributes is only called after an itemset has been created
Change-Id: I0ef8df039ed7a238b673c3770ee884a58dd62772
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158735
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/properties/captionproperties.cxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/properties/circleproperties.cxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/properties/graphicproperties.cxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/properties/measureproperties.cxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/properties/textproperties.cxx | 3 |
5 files changed, 0 insertions, 15 deletions
diff --git a/svx/source/sdr/properties/captionproperties.cxx b/svx/source/sdr/properties/captionproperties.cxx index 31bb62268521..3de1da6d65b9 100644 --- a/svx/source/sdr/properties/captionproperties.cxx +++ b/svx/source/sdr/properties/captionproperties.cxx @@ -89,9 +89,6 @@ namespace sdr::properties // call parent RectangleProperties::ForceDefaultAttributes(); - // force ItemSet - GetObjectItemSet(); - // this was set by TextProperties::ForceDefaultAttributes(), // reset to default if (static_cast<SdrCaptionObj&>(GetSdrObject()).GetSpecialTextBoxShadow()) diff --git a/svx/source/sdr/properties/circleproperties.cxx b/svx/source/sdr/properties/circleproperties.cxx index 6f589f67548f..643c297eb043 100644 --- a/svx/source/sdr/properties/circleproperties.cxx +++ b/svx/source/sdr/properties/circleproperties.cxx @@ -98,9 +98,6 @@ namespace sdr::properties if(eKind != SdrCircKind::Full) { - // force ItemSet - GetObjectItemSet(); - moItemSet->Put(SdrCircKindItem(eKind)); if(rObj.GetStartAngle()) diff --git a/svx/source/sdr/properties/graphicproperties.cxx b/svx/source/sdr/properties/graphicproperties.cxx index 3346c5d80048..a43ee5bd9fbb 100644 --- a/svx/source/sdr/properties/graphicproperties.cxx +++ b/svx/source/sdr/properties/graphicproperties.cxx @@ -132,9 +132,6 @@ namespace sdr::properties // call parent RectangleProperties::ForceDefaultAttributes(); - // force ItemSet - GetObjectItemSet(); - moItemSet->Put( SdrGrafLuminanceItem( 0 ) ); moItemSet->Put( SdrGrafContrastItem( 0 ) ); moItemSet->Put( SdrGrafRedItem( 0 ) ); diff --git a/svx/source/sdr/properties/measureproperties.cxx b/svx/source/sdr/properties/measureproperties.cxx index 44cdae798899..a6f4b7fd7c81 100644 --- a/svx/source/sdr/properties/measureproperties.cxx +++ b/svx/source/sdr/properties/measureproperties.cxx @@ -105,9 +105,6 @@ namespace sdr::properties // call parent TextProperties::ForceDefaultAttributes(); - // force ItemSet - GetObjectItemSet(); - //#71958# by default, the show units Bool-Item is set as hard // attribute to sal_True to avoid confusion when copying SdrMeasureObj's // from one application to another diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx index b2bb7b746ab9..55b366bdc03b 100644 --- a/svx/source/sdr/properties/textproperties.cxx +++ b/svx/source/sdr/properties/textproperties.cxx @@ -374,9 +374,6 @@ namespace sdr::properties bool bTextFrame(rObj.IsTextFrame()); - // force ItemSet - GetObjectItemSet(); - if(bTextFrame) { moItemSet->Put(XLineStyleItem(drawing::LineStyle_NONE)); |