summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/appl/newhelp.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 4a8ca07c9df3..e6c3b2b19856 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2719,15 +2719,14 @@ void SfxHelpWindow_Impl::Split()
InitSizes();
}
-
-
void SfxHelpWindow_Impl::GetFocus()
{
- pTextWin->GrabFocus();
+ if( pTextWin )
+ pTextWin->GrabFocus();
+ else
+ vcl::Window::GetFocus();
}
-
-
void SfxHelpWindow_Impl::MakeLayout()
{
if ( nHeight > 0 && xWindow.is() )