diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-16 12:59:20 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-16 13:19:01 +0100 |
commit | a76dcdfaa6c6d2b1d73fb1c96fe38dd7e452f48a (patch) | |
tree | c12bcde2c4614656d1eca1c233e9a759960d282a /sfx2 | |
parent | aa7471be23d1a361ec4130262f4c08a7b539d8e1 (diff) |
tdf#91259 - fix help browser focus issue post dispose.
Change-Id: I0b7758b6780dfbe88aff8f0fc1a93d93b9910d87
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 9 |
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() ) |