diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-01-03 14:09:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-03 16:47:57 +0100 |
commit | 0899daa267ff6b31dd16f6daae7eb457f6e39203 (patch) | |
tree | b21d9bcca225829a4bba98fe3529b60674b5d587 /chart2 | |
parent | ee28a1464f2bbeaa24c34c73fee382f6e13a8ebb (diff) |
use more SvxShape in chart2
Change-Id: Ica9fff6c2d9619708a8f1b9994ad7d8a7d21a36d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/diagram/VDiagram.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/chart2/source/view/diagram/VDiagram.cxx b/chart2/source/view/diagram/VDiagram.cxx index c0fa685aad7d..284950f38203 100644 --- a/chart2/source/view/diagram/VDiagram.cxx +++ b/chart2/source/view/diagram/VDiagram.cxx @@ -182,15 +182,9 @@ void VDiagram::createShapes_2d() adjustPosAndSize_2d( m_aAvailablePosIncludingAxes, m_aAvailableSizeIncludingAxes ); } -static E3dScene* lcl_getE3dScene( const uno::Reference< drawing::XShape >& xShape ) +static E3dScene* lcl_getE3dScene( const rtl::Reference<SvxShapeGroupAnyD>& xShape ) { - E3dScene* pRet=nullptr; - uno::Reference< lang::XTypeProvider > xTypeProvider( xShape, uno::UNO_QUERY ); - if(xTypeProvider.is()) - { - pRet = dynamic_cast< E3dScene* >(SdrObject::getSdrObjectFromXShape(xShape)); - } - return pRet; + return dynamic_cast< E3dScene* >(xShape->GetSdrObject()); } static void lcl_setLightSources( |