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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 25 21:15:49 UTC 2019


 sw/source/uibase/fldui/fldwrap.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 1a84b1c3978c691b857d481826dbe160666eb3ea
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 25 13:41:58 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 25 22:15:25 2019 +0100

    Resolves: tdf#124319 crash on restoring redline SfxChildWin
    
    Change-Id: I585ce6403e256652ebfc0ccb8ba25daa9c3e34e8
    Reviewed-on: https://gerrit.libreoffice.org/69676
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx
index c65c1d1b17d0..69cb72de640a 100644
--- a/sw/source/uibase/fldui/fldwrap.cxx
+++ b/sw/source/uibase/fldui/fldwrap.cxx
@@ -45,7 +45,10 @@ SwChildWinWrapper::SwChildWinWrapper(vcl::Window *pParentWindow, sal_uInt16 nId)
 
 IMPL_LINK_NOARG(SwChildWinWrapper, UpdateHdl, Timer *, void)
 {
-    GetController()->Activate();    // update dialog
+    if (GetController())
+        GetController()->Activate();    // update dialog
+    else if (GetWindow())
+        GetWindow()->Activate();    // update dialog
 }
 
 // newly initialise dialog after Doc switch


More information about the Libreoffice-commits mailing list