Resolves: tdf#124319 crash on restoring redline SfxChildWin

Change-Id: I585ce6403e256652ebfc0ccb8ba25daa9c3e34e8
Reviewed-on: https://gerrit.libreoffice.org/69676
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx
index c65c1d1..69cb72d 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