summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-10-11 06:44:43 +0000
committerMathias Bauer <mba@openoffice.org>2001-10-11 06:44:43 +0000
commit39252798450587c1ad4527890792d4a81b78236b (patch)
tree2e91a7212082335765876145484342ca3c9e00e0 /sfx2/source/view
parent36c5f00d47a9d5ee16fc229e7cd8fdab6af8c173 (diff)
#90899#: SID_NEXTWINDOW/PREVWINDOW fixed
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/viewfrm.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 578b256b0753..477906598782 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: viewfrm.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: mba $ $Date: 2001-10-02 07:32:37 $
+ * last change: $Author: mba $ $Date: 2001-10-11 07:44:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3225,7 +3225,11 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq )
case SID_PREVWINDOW :
{
SfxWorkWindow *pWork = GetFrame()->GetWorkWindow_Impl();
- pWork->ActivateNextChild_Impl( rReq.GetSlot() == SID_NEXTWINDOW ? TRUE :FALSE );
+ if ( !pWork->ActivateNextChild_Impl( rReq.GetSlot() == SID_NEXTWINDOW ? TRUE :FALSE ) )
+ {
+ GetViewShell()->GetWindow()->GrabFocus();
+ pWork->SetActiveChild_Impl( NULL );
+ }
rReq.Done();
break;
}