diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 659fbf95e6b9..b78255b1e17a 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -860,12 +860,11 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) } // Show/Hide the Notebookbar - for ( SfxObjectShell *pObjSh = SfxObjectShell::GetFirst(); - pObjSh; - pObjSh = SfxObjectShell::GetNext( *pObjSh ) ) + SfxObjectShell* pCurrentShell = SfxObjectShell::Current(); + if ( pCurrentShell ) { const SfxPoolItem *pItem; - pObjSh->GetDispatcher()->QueryState(SID_NOTEBOOKBAR, pItem); + pCurrentShell->GetDispatcher()->QueryState(SID_NOTEBOOKBAR, pItem); } // Save settings |