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

Telesto telesto at surfxs.nl
Fri Feb 16 17:28:12 UTC 2018


 vcl/source/window/window.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 11fab5aeaaa72012c63b2c812656a932ef0debf9
Author: Telesto <telesto at surfxs.nl>
Date:   Fri Feb 16 13:44:38 2018 +0200

    tdf#115315 Cursor not in focus with new document
    
    Partial revert of 7aae8772aa18744cb1bbd8348272be99cc882c47
    ("Clear VclPtr instance reference on removed UserEvents.")
    Disposing of child controls should not affect focus events
    of the parent frame.
    
    Change-Id: I583311050560a2851cfcc372741b675b52375d06
    Reviewed-on: https://gerrit.libreoffice.org/49855
    Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 6a9612f36e8e..388c793c03d7 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -489,7 +489,7 @@ void Window::dispose()
     if ( pSVData->maWinData.mpLastDeacWin == this )
         pSVData->maWinData.mpLastDeacWin = nullptr;
 
-    if ( mpWindowImpl->mpFrameData )
+    if ( mpWindowImpl->mbFrame && mpWindowImpl->mpFrameData )
     {
         if ( mpWindowImpl->mpFrameData->mnFocusId )
             Application::RemoveUserEvent( mpWindowImpl->mpFrameData->mnFocusId );


More information about the Libreoffice-commits mailing list