diff options
Diffstat (limited to 'sw/source/core/attr/format.cxx')
-rw-r--r-- | sw/source/core/attr/format.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx index cfbf3a2ba77e..d5c3a3833f0d 100644 --- a/sw/source/core/attr/format.cxx +++ b/sw/source/core/attr/format.cxx @@ -693,16 +693,9 @@ void SwFormat::DelDiffs( const SfxItemSet& rSet ) void SwFormat::SetPageFormatToDefault() { - - SvxLRSpaceItem aLR(RES_LR_SPACE); const sal_Int32 nSize = o3tl::convert(2, o3tl::Length::cm, o3tl::Length::twip); - aLR.SetLeft(nSize); - aLR.SetRight(nSize); - SvxULSpaceItem aUL(RES_UL_SPACE); - aUL.SetUpper(static_cast<sal_uInt16>(nSize)); - aUL.SetLower(static_cast<sal_uInt16>(nSize)); - SetFormatAttr(aLR); - SetFormatAttr(aUL); + SetFormatAttr(SvxLRSpaceItem(nSize, nSize, nSize, 0, RES_LR_SPACE)); + SetFormatAttr(SvxULSpaceItem(nSize, nSize, RES_UL_SPACE)); } /** SwFormat::IsBackgroundTransparent |