summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2011-03-16 11:42:17 +0100
committerobo <obo@openoffice.org>2011-03-16 11:42:17 +0100
commit5b2cda248a43fa7ed094271b5f553ff6e13d45aa (patch)
treeb6b605ee630dd04259506c0b7cdfb2e511e95e24 /sw/source/ui/utlui
parentf36f35bef2c1e1beb8f43845ccf4b49d9f812a03 (diff)
parentbde549822041c6599102a8d155e2760f7fa95c4c (diff)
CWS-TOOLING: integrate CWS swlayoutrefactoring
Diffstat (limited to 'sw/source/ui/utlui')
-rw-r--r--sw/source/ui/utlui/uitool.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/uitool.cxx b/sw/source/ui/utlui/uitool.cxx
index 9ccb68c3bef4..915d543d71cf 100644
--- a/sw/source/ui/utlui/uitool.cxx
+++ b/sw/source/ui/utlui/uitool.cxx
@@ -544,7 +544,7 @@ void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet )
SwPageDesc* pDesc = ((SwWrtShell&)rShell).FindPageDescByName(
rDescName, sal_True );
if( pDesc )
- pDesc->Add( &aPgDesc );
+ aPgDesc.RegisterToPageDesc( *pDesc );
}
rSet.ClearItem( SID_ATTR_PARA_MODEL );
bChanged = sal_True;
@@ -557,7 +557,7 @@ void SfxToSwPageDescAttr( const SwWrtShell& rShell, SfxItemSet& rSet )
{
if( ((SwFmtPageDesc*)pItem)->GetPageDesc() )
{
- ((SwFmtPageDesc*)pItem)->GetPageDesc()->Add(&aPgDesc);
+ aPgDesc.RegisterToPageDesc( *((SwFmtPageDesc*)pItem)->GetPageDesc() );
}
}
}