Kaydet (Commit) da1398c5 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#59428: SwDoc::ChgPageDesc: always copy to first-pagedesc

... otherwise the first page will not be updated on page style changes.
(uncovered by commit c41675a7,
 which should have fixed this too)

Change-Id: I04f75b2a8e8929767fb36dd7085c3a273f07c93a
üst c2445b03
...@@ -296,12 +296,12 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged ) ...@@ -296,12 +296,12 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
((SwPageDesc&)rChged).Mirror(); ((SwPageDesc&)rChged).Mirror();
else else
{ {
// Or else transfer values from Master to Left and First. // Or else transfer values from Master to Left
::lcl_DescSetAttr( ((SwPageDesc&)rChged).GetMaster(), ::lcl_DescSetAttr(rChged.GetMaster(),
((SwPageDesc&)rChged).GetLeft() ); const_cast<SwPageDesc&>(rChged).GetLeft());
::lcl_DescSetAttr( ((SwPageDesc&)rChged).GetMaster(),
((SwPageDesc&)rChged).GetFirst() );
} }
::lcl_DescSetAttr(rChged.GetMaster(),
const_cast<SwPageDesc&>(rChged).GetFirst());
// Take over NumType. // Take over NumType.
if( rChged.GetNumType().GetNumberingType() != pDesc->GetNumType().GetNumberingType() ) if( rChged.GetNumType().GetNumberingType() != pDesc->GetNumType().GetNumberingType() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment