[Libreoffice-commits] .: sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Wed Jul 4 03:51:39 PDT 2012


 sw/source/core/doc/docdesc.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit b1594febc030376a272c73cf125a2c77e42b8117
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Wed Jul 4 12:51:31 2012 +0200

    SwDoc::ChgPageDesc: copy page size to first page
    
    Change-Id: I714c8cb16710e4220ce97e8b5597b5ff9f4f0bab

diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index 0ae1093..7f98a55 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -318,9 +318,13 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
     if ( rChged.GetUseOn() == nsUseOnPage::PD_MIRROR )
         ((SwPageDesc&)rChged).Mirror();
     else
-        // Or else transfer values from Master to Left.
+    {
+        // Or else transfer values from Master to Left and First.
         ::lcl_DescSetAttr( ((SwPageDesc&)rChged).GetMaster(),
                        ((SwPageDesc&)rChged).GetLeft() );
+        ::lcl_DescSetAttr( ((SwPageDesc&)rChged).GetMaster(),
+                       ((SwPageDesc&)rChged).GetFirst() );
+    }
 
     // Take over NumType.
     if( rChged.GetNumType().GetNumberingType() != pDesc->GetNumType().GetNumberingType() )


More information about the Libreoffice-commits mailing list