Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@redhat.com>

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.