diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-12 13:48:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 12:53:27 +0000 |
commit | 172aedbc51e4bd972bef3f94d562e09ee7bc8355 (patch) | |
tree | eecdf8098e03d20fa02504c36d400c1cf492eb71 /starmath | |
parent | ce4193e3398e30c25ec28310a8034b4ca5513d7a (diff) |
XUnoTunnel->dynamic_cast in VCLXDevice
Change-Id: I9fa06600d3b9a2172a1818f89a3b9c06d65c8c54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145467
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index b7a92567fe25..985c2971f035 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -956,7 +956,7 @@ void SAL_CALL SmModel::render( if (!xRenderDevice.is()) return; - VCLXDevice* pDevice = comphelper::getFromUnoTunnel<VCLXDevice>( xRenderDevice ); + VCLXDevice* pDevice = dynamic_cast<VCLXDevice*>( xRenderDevice.get() ); VclPtr< OutputDevice> pOut = pDevice ? pDevice->GetOutputDevice() : VclPtr< OutputDevice >(); if (!pOut) |