summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-03 16:11:08 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-07-03 16:28:51 +0200
commit3a60e6ddd9546db53796fa0a32801d9b6a16c293 (patch)
treeecfc73db84e4ab0dd4b0560514a09aafbf2bf0e9 /sw
parent84a9c3ff504218683d0391d3dfe7491eb043a2b5 (diff)
sw: missing RES_FRAMEDIR in SwPageDesc::aFirst's itemset
Change-Id: I695dae12060de2d7ec20ca222b8eadf93a6e9d79
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docdesc.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index ed700a58edb5..0ae10939c8c8 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -419,6 +419,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
// Take over the page attributes.
::lcl_DescSetAttr( rChged.GetMaster(), pDesc->GetMaster() );
::lcl_DescSetAttr( rChged.GetLeft(), pDesc->GetLeft() );
+ ::lcl_DescSetAttr( rChged.GetFirst(), pDesc->GetFirst() );
// If the FootnoteInfo changes, the pages are triggered.
if( !(pDesc->GetFtnInfo() == rChged.GetFtnInfo()) )
@@ -431,6 +432,9 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
{
pDesc->GetLeft().ModifyBroadcast( &aInfo, 0, TYPE(SwFrm) );
}
+ {
+ pDesc->GetFirst().ModifyBroadcast( &aInfo, 0, TYPE(SwFrm) );
+ }
}
SetModified();
@@ -573,6 +577,7 @@ sal_uInt16 SwDoc::MakePageDesc( const String &rName, const SwPageDesc *pCpy,
pNew->GetMaster().SetFmtAttr( SvxFrameDirectionItem(aFrameDirection, RES_FRAMEDIR) );
pNew->GetLeft().SetFmtAttr( SvxFrameDirectionItem(aFrameDirection, RES_FRAMEDIR) );
+ pNew->GetFirst().SetFmtAttr( SvxFrameDirectionItem(aFrameDirection, RES_FRAMEDIR) );
}
aPageDescs.push_back( pNew );