summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-09-18 14:21:10 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-09-18 14:21:10 +0000
commite75340369d71cf9c18777c6ad753cea0e7338fed (patch)
tree85359794e328a262c73d5461432ddb097c783671
parentdae422e1ae88908ecaccc1e6e8836c75abd82e8b (diff)
#i10000# fix of the fix
-rw-r--r--sfx2/source/doc/objxtor.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 72762e79df..d7470e9d8b 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -582,7 +582,8 @@ sal_uInt16 SfxObjectShell::PrepareClose
}
}
- 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 )
{
@@ -597,9 +598,6 @@ sal_uInt16 SfxObjectShell::PrepareClose
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() )
{