chart2/source/view/diagram/VDiagram.cxx |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 0899daa267ff6b31dd16f6daae7eb457f6e39203
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Mon Jan 3 14:09:03 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Jan 3 16:47:57 2022 +0100

    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.gran...@collabora.co.uk>

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(

Reply via email to