#77245# call getoutputset only once!
This commit is contained in:
parent
968e7159c1
commit
8b4b5f62ee
1 changed files with 5 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: fuprobjs.cxx,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-18 16:48:36 $
|
||||
* last change: $Author: cl $ $Date: 2000-11-15 13:34:21 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -172,13 +172,14 @@ FuPresentationObjects::FuPresentationObjects(SdViewShell* pViewSh,
|
|||
|
||||
if( pDlg->Execute() == RET_OK )
|
||||
{
|
||||
const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
|
||||
// Undo-Action
|
||||
StyleSheetUndoAction* pAction = new StyleSheetUndoAction
|
||||
(pDoc, (SfxStyleSheet*)pStyleSheet,
|
||||
pDlg->GetOutputItemSet());
|
||||
pOutSet);
|
||||
pDocSh->GetUndoManager()->AddUndoAction(pAction);
|
||||
|
||||
pStyleSheet->GetItemSet().Put( *( pDlg->GetOutputItemSet() ) );
|
||||
pStyleSheet->GetItemSet().Put( *pOutSet );
|
||||
( (SfxStyleSheet*) pStyleSheet )->Broadcast( SfxSimpleHint( SFX_HINT_DATACHANGED ) );
|
||||
}
|
||||
delete( pDlg );
|
||||
|
|
Loading…
Reference in a new issue