extensions/source/propctrlr/propcontroller.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 32b7c32aa84dc51d3acd75bde5db7655868e5ad9
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Mar 11 15:48:09 2021 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Mar 12 10:04:11 2021 +0100

    use VCLUnoHelper::GetWindow
    
    instead of directly using VCLXWindow
    
    Change-Id: I80c70c9773b1963ec4d58c833ff2fdba9cfc4b92
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112353
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/extensions/source/propctrlr/propcontroller.cxx 
b/extensions/source/propctrlr/propcontroller.cxx
index 1835501e5525..d9166b64dff6 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -38,7 +38,7 @@
 #include <com/sun/star/util/VetoException.hpp>
 #include <tools/debug.hxx>
 #include <tools/diagnose_ex.h>
-#include <toolkit/awt/vclxwindow.hxx>
+#include <toolkit/helper/vclunohelper.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/weld.hxx>
 #include <vcl/weldutils.hxx>
@@ -344,8 +344,7 @@ namespace pcr
         }
         else
         {
-            VCLXWindow* pContainerWindow = 
comphelper::getUnoTunnelImplementation<VCLXWindow>(xContainerWindow);
-            VclPtr<vcl::Window> pParentWin = pContainerWindow ? 
pContainerWindow->GetWindow() : nullptr;
+            VclPtr<vcl::Window> pParentWin = 
VCLUnoHelper::GetWindow(xContainerWindow);
             if (!pParentWin)
                 throw RuntimeException("The frame is invalid. Unable to 
extract the container window.",*this);
             xBuilder.reset(Application::CreateInterimBuilder(pParentWin, 
sUIFile, true));
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to