[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sw/source

Michael Stahl mstahl at redhat.com
Sat Dec 21 08:07:37 PST 2013


 sw/source/core/doc/docdesc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e839c779a1a6b5a80d5e7368c457ba9620ecd6bb
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Dec 20 11:24:48 2013 +0100

    fdo#70232: sw: brown paper-bag fix for header sharing mangling footers
    
    Stupid copy/paste error in SwDoc::CopyMasterFooter() checks
    IsHeaderShared().
    
    (regression from e1a9a348a519a69f898c9c1e6d87a5837b8267f9)
    
    Change-Id: I0c0bc16a8c581cd05ed206a0de79c7983204165b
    (cherry picked from commit 94c772adc2e8d8af468f3996527c84bf7704103f)
    Reviewed-on: https://gerrit.libreoffice.org/7154
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index bb1d78f..7bbecfa 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -259,7 +259,7 @@ void SwDoc::CopyMasterFooter(const SwPageDesc &rChged, const SwFmtFooter &rFoot,
                 // The CntntIdx is _always_ different when called from
                 // SwDocStyleSheet::SetItemSet, because it deep-copies the
                 // PageDesc.  So check if it was previously shared.
-                 ((bLeft) ? pDesc->IsHeaderShared() : pDesc->IsFirstShared()))
+                 ((bLeft) ? pDesc->IsFooterShared() : pDesc->IsFirstShared()))
             {
                 SwFrmFmt *pFmt = new SwFrmFmt( GetAttrPool(), (bLeft ? "Left footer" : "First footer"),
                                                 GetDfltFrmFmt() );


More information about the Libreoffice-commits mailing list