diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-04 10:22:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-04 11:19:35 +0100 |
commit | 18982376918c88ec09c2c7fd42ef635e93897b05 (patch) | |
tree | 33745acca3f3b8155628981b81438a15131fc157 /filter | |
parent | 380ab85b6594a013f34f5e6ec69fb569336bbb48 (diff) |
use more getSdrObjectFromXShape
Change-Id: Ia237643ab040425f231f781c86e7e060f0b53717
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110400
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/eschesdo.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index 24f47d62909f..d2c85672ca05 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -991,14 +991,8 @@ sal_uInt32 EscherEx::AddDummyShape() // static const SdrObject* EscherEx::GetSdrObject( const Reference< XShape >& rShape ) { - const SdrObject* pRet = nullptr; - const SvxShape* pSvxShape = comphelper::getUnoTunnelImplementation<SvxShape>( rShape ); - DBG_ASSERT( pSvxShape, "EscherEx::GetSdrObject: no SvxShape" ); - if( pSvxShape ) - { - pRet = pSvxShape->GetSdrObject(); - DBG_ASSERT( pRet, "EscherEx::GetSdrObject: no SdrObj" ); - } + const SdrObject* pRet = SdrObject::getSdrObjectFromXShape( rShape ); + DBG_ASSERT( pRet, "EscherEx::GetSdrObject: no SdrObj" ); return pRet; } |