Commits

Anonymous committed cc2f4db

#i10000# fix of the fix

Comments (0)

Files changed (1)

sfx2/source/doc/objxtor.cxx

 		}
 	}
 
-    SFX_APP()->NotifyEvent( SfxEventHint(SFX_EVENT_PREPARECLOSEDOC, GlobalEventConfig::GetEventName(STR_EVENT_PREPARECLOSEDOC), this) );
+    SfxApplication *pSfxApp = SFX_APP();
+    pSfxApp->NotifyEvent( SfxEventHint(SFX_EVENT_PREPARECLOSEDOC, GlobalEventConfig::GetEventName(STR_EVENT_PREPARECLOSEDOC), this) );
     
     if( GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
 	{
 	while ( pFrame && (pFrame->GetFrameType() & SFXFRAME_SERVER ) )
 		pFrame = SfxViewFrame::GetNext( *pFrame, this );
 
-	SfxApplication *pSfxApp = SFX_APP();
-	pSfxApp->NotifyEvent( SfxEventHint(SFX_EVENT_PREPARECLOSEDOC, GlobalEventConfig::GetEventName(STR_EVENT_PREPARECLOSEDOC), this) );
-
 	sal_Bool bClose = sal_False;
 	if ( bUI && IsModified() )
 	{