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 /sw | |
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 'sw')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 087949787d89..781a62d78a81 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -923,9 +923,7 @@ SwXShape::SwXShape( m_xShapeAgg->setDelegator( static_cast<cppu::OWeakObject*>(this) ); osl_atomic_decrement(&m_refCount); - SvxShape* pShape = comphelper::getUnoTunnelImplementation<SvxShape>(m_xShapeAgg); - - SdrObject* pObj = pShape ? pShape->GetSdrObject() : nullptr; + SdrObject* pObj = SdrObject::getSdrObjectFromXShape(m_xShapeAgg); if(pObj) { auto pFormat = ::FindFrameFormat( pObj ); |