[PATCH libreoffice-4-0] fdo#60250: InsertNewPage: copy margins for mirrored pages
Michael Stahl (via Code Review)
gerrit at gerrit.libreoffice.org
Mon Feb 4 15:58:55 PST 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/1987
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/87/1987/1
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
(cherry picked from commit 2fc87188bd4a73d25b64b32e0287cee5d6ee4a48)
---
M sw/source/core/layout/frmtool.cxx
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 9a60553..bdc6138 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -2742,11 +2742,14 @@
{
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();
--
To view, visit https://gerrit.libreoffice.org/1987
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I56ccc6f7987accefc27d627d2427ee37d83bd758
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Michael Stahl <mstahl at redhat.com>
More information about the LibreOffice
mailing list