diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-04 23:26:50 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-05 00:53:31 +0100 |
commit | 2fc87188bd4a73d25b64b32e0287cee5d6ee4a48 (patch) | |
tree | 61a2c7520c4bc2725084627af841163d1e9b483b /sw/source | |
parent | 6a0017e05c6c8655991732944b7799920bd07222 (diff) |
fdo#60250: InsertNewPage: copy margins for mirrored pages
When there is no explicit first page, set the proper left or right
margins, which are different for mirrored page styles.
(regression from a964cf666abb0c4df4e29ea8709532b7d45c104f)
Change-Id: I56ccc6f7987accefc27d627d2427ee37d83bd758
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index db4ef960c508..f0bafdec0c7f 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -2729,11 +2729,14 @@ SwPageFrm * InsertNewPage( SwPageDesc &rDesc, SwFrm *pUpper, { rDesc.GetFirst().SetFmtAttr( rDesc.GetMaster().GetHeader() ); rDesc.GetFirst().SetFmtAttr( rDesc.GetMaster().GetFooter() ); + // fdo#60250 copy margins for mirrored pages + rDesc.GetFirst().SetFmtAttr( rDesc.GetMaster().GetLRSpace() ); } else { rDesc.GetFirst().SetFmtAttr( rDesc.GetLeft().GetHeader() ); rDesc.GetFirst().SetFmtAttr( rDesc.GetLeft().GetFooter() ); + rDesc.GetFirst().SetFmtAttr( rDesc.GetLeft().GetLRSpace() ); } } pFmt = rDesc.GetFirstFmt(); |