diff options
Diffstat (limited to 'sd/source/ui/framework/factories/BasicPaneFactory.cxx')
-rw-r--r-- | sd/source/ui/framework/factories/BasicPaneFactory.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/framework/factories/BasicPaneFactory.cxx b/sd/source/ui/framework/factories/BasicPaneFactory.cxx index c01d315a3d9c..64cec425ad54 100644 --- a/sd/source/ui/framework/factories/BasicPaneFactory.cxx +++ b/sd/source/ui/framework/factories/BasicPaneFactory.cxx @@ -132,8 +132,7 @@ void SAL_CALL BasicPaneFactory::initialize (const Sequence<Any>& aArguments) // Tunnel through the controller to obtain access to the ViewShellBase. try { - Reference<lang::XUnoTunnel> xTunnel (xController, UNO_QUERY_THROW); - if (auto pController = comphelper::getFromUnoTunnel<DrawController>(xTunnel)) + if (auto pController = dynamic_cast<DrawController*>(xController.get())) mpViewShellBase = pController->GetViewShellBase(); } catch(RuntimeException&) |