crashtesting: sync PageProperties::SetStyleSheet with GetStyleSheet
PageProperties::GetStyleSheet returns 0 so PageProperties::SetStyleSheet should do nothing Change-Id: If627ba3e31b14ff5178f45125f0ce6e4dbf93ec0
This commit is contained in:
BIN
sd/qa/unit/data/odp/pass/ooo72169-1.odp
Normal file
BIN
sd/qa/unit/data/odp/pass/ooo72169-1.odp
Normal file
Binary file not shown.
@@ -59,6 +59,9 @@ namespace sdr
|
|||||||
// get the installed StyleSheet
|
// get the installed StyleSheet
|
||||||
virtual SfxStyleSheet* GetStyleSheet() const override;
|
virtual SfxStyleSheet* GetStyleSheet() const override;
|
||||||
|
|
||||||
|
// set the installed StyleSheet
|
||||||
|
virtual void SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr) override;
|
||||||
|
|
||||||
// clear single item
|
// clear single item
|
||||||
virtual void ClearObjectItem(const sal_uInt16 nWhich = 0) override;
|
virtual void ClearObjectItem(const sal_uInt16 nWhich = 0) override;
|
||||||
};
|
};
|
||||||
|
@@ -79,6 +79,11 @@ namespace sdr
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PageProperties::SetStyleSheet(SfxStyleSheet* /*pStyleSheet*/, bool /*bDontRemoveHardAttr*/)
|
||||||
|
{
|
||||||
|
// override to legally ignore the StyleSheet here
|
||||||
|
}
|
||||||
|
|
||||||
void PageProperties::PostItemChange(const sal_uInt16 nWhich )
|
void PageProperties::PostItemChange(const sal_uInt16 nWhich )
|
||||||
{
|
{
|
||||||
if( (nWhich == XATTR_FILLSTYLE) && (mpEmptyItemSet != nullptr) )
|
if( (nWhich == XATTR_FILLSTYLE) && (mpEmptyItemSet != nullptr) )
|
||||||
|
Reference in New Issue
Block a user