check current floating state of DockingWindow

regression from...

commit cf234dc05a3a75199890e953d789bd19b02c1725
Date:   Tue Mar 9 20:15:28 2021 +0000

    rename SfxChildWindowContext::GetFloatingWindow to what it does

Change-Id: Ie52946739439ef66c224f2e388fc407912783bb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112328
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index 35d3f2e..b60c534 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -438,7 +438,7 @@ bool ParentIsFloatingWindow(vcl::Window *pParent)
    if (!pParent)
        return false;
    if (pParent->GetType() == WindowType::DOCKINGWINDOW || pParent->GetType() == WindowType::TOOLBOX)
        return true;
        return static_cast<DockingWindow*>(pParent)->GetFloatingWindow() != nullptr;
    if (pParent->GetType() == WindowType::FLOATINGWINDOW)
        return true;
    return false;