[Libreoffice-commits] core.git: svx/source

Michael Meeks michael.meeks at collabora.com
Mon Oct 26 03:39:56 PDT 2015


 svx/source/tbxctrls/tbcontrl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ff3e81600c2e4512ea3992b4abd3ab23b5c8a110
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Fri Oct 23 06:21:25 2015 +0100

    tdf#93487 - protect GetFocus method call post dispose.
    
    Change-Id: Id61e37e4e9ea62c3dba224e55ddfdc71fb0bfc8c
    Reviewed-on: https://gerrit.libreoffice.org/19541
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index c60f81a..0dc30fa 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1638,7 +1638,8 @@ vcl::Window* SvxFrameWindow_Impl::GetPreferredKeyInputWindow()
 
 void SvxFrameWindow_Impl::GetFocus()
 {
-    aFrameSet->GrabFocus();
+    if (aFrameSet)
+        aFrameSet->GrabFocus();
 }
 
 void SvxFrameWindow_Impl::DataChanged( const DataChangedEvent& rDCEvt )


More information about the Libreoffice-commits mailing list