From 39252798450587c1ad4527890792d4a81b78236b Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Thu, 11 Oct 2001 06:44:43 +0000 Subject: #90899#: SID_NEXTWINDOW/PREVWINDOW fixed --- sfx2/source/view/viewfrm.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sfx2/source/view') 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; } -- cgit