summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/tabtempl.cxx
diff options
context:
space:
mode:
authorKai Ahrens <ka@openoffice.org>2002-08-07 11:43:36 +0000
committerKai Ahrens <ka@openoffice.org>2002-08-07 11:43:36 +0000
commit71f2eaab69e795ff749686d8355bf25b23f4e5ed (patch)
tree903e78fe92b0e64a34fa9e9b8120add5e0b3def4 /sd/source/ui/dlg/tabtempl.cxx
parent79c8088ed73c597f39ecf8b56c821fb41ac381bd (diff)
#101146#: clear and reparent itemset
Diffstat (limited to 'sd/source/ui/dlg/tabtempl.cxx')
-rw-r--r--sd/source/ui/dlg/tabtempl.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/tabtempl.cxx b/sd/source/ui/dlg/tabtempl.cxx
index 312872290bc5..bc86b8c7c0d0 100644
--- a/sd/source/ui/dlg/tabtempl.cxx
+++ b/sd/source/ui/dlg/tabtempl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabtempl.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: dl $ $Date: 2001-08-23 14:27:17 $
+ * last change: $Author: ka $ $Date: 2002-08-07 12:43:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -279,9 +279,17 @@ void SdTabTemplateDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
const SfxItemSet* SdTabTemplateDlg::GetRefreshedSet()
{
- delete GetInputSetImpl();
+ SfxItemSet* pRet = GetInputSetImpl();
- return new SfxItemSet( GetStyleSheet().GetItemSet() );
+ if( pRet )
+ {
+ pRet->ClearItem();
+ pRet->SetParent( GetStyleSheet().GetItemSet().GetParent() );
+ }
+ else
+ pRet = new SfxItemSet( GetStyleSheet().GetItemSet() );
+
+ return pRet;
}