diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-29 10:01:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-29 10:02:38 +0000 |
commit | 836cd17fcd62677e3be2ccb1b7e633f8d12c313e (patch) | |
tree | 6e2783046938784147e3b621755705aa137c17d3 /svx | |
parent | 85071c6c7b120935b03926228916393a94aa5ef0 (diff) |
crashtesting: sync PageProperties::SetStyleSheet with GetStyleSheet
PageProperties::GetStyleSheet returns 0 so PageProperties::SetStyleSheet
should do nothing
Change-Id: If627ba3e31b14ff5178f45125f0ce6e4dbf93ec0
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/sdr/properties/pageproperties.hxx | 3 | ||||
-rw-r--r-- | svx/source/sdr/properties/pageproperties.cxx | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/svx/inc/sdr/properties/pageproperties.hxx b/svx/inc/sdr/properties/pageproperties.hxx index c6e9d303856d..5df093a2617f 100644 --- a/svx/inc/sdr/properties/pageproperties.hxx +++ b/svx/inc/sdr/properties/pageproperties.hxx @@ -59,6 +59,9 @@ namespace sdr // get the installed StyleSheet virtual SfxStyleSheet* GetStyleSheet() const override; + // set the installed StyleSheet + virtual void SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr) override; + // clear single item virtual void ClearObjectItem(const sal_uInt16 nWhich = 0) override; }; diff --git a/svx/source/sdr/properties/pageproperties.cxx b/svx/source/sdr/properties/pageproperties.cxx index 20758b0f24ed..2250aa2156de 100644 --- a/svx/source/sdr/properties/pageproperties.cxx +++ b/svx/source/sdr/properties/pageproperties.cxx @@ -79,6 +79,11 @@ namespace sdr return nullptr; } + void PageProperties::SetStyleSheet(SfxStyleSheet* /*pStyleSheet*/, bool /*bDontRemoveHardAttr*/) + { + // override to legally ignore the StyleSheet here + } + void PageProperties::PostItemChange(const sal_uInt16 nWhich ) { if( (nWhich == XATTR_FILLSTYLE) && (mpEmptyItemSet != nullptr) ) |