updatePathFromSdrPathObj can just call getRange

no need to extract the list of drawing primitives

Change-Id: I70fbf1ac69c923fdbeaa00c885404b599f6fa2b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126369
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index aaa5f36..4477ec3 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -1606,10 +1606,8 @@ void CustomAnimationEffect::updatePathFromSdrPathObj( const SdrPathObj& rPathObj
    {
        ::tools::Rectangle aBoundRect(0,0,0,0);

        drawinglayer::primitive2d::Primitive2DContainer xPrimitives;
        pObj->GetViewContact().getViewIndependentPrimitive2DContainer(xPrimitives);
        const drawinglayer::geometry::ViewInformation2D aViewInformation2D;
        const basegfx::B2DRange aRange(xPrimitives.getB2DRange(aViewInformation2D));
        const basegfx::B2DRange aRange = pObj->GetViewContact().getRange(aViewInformation2D);

        if(!aRange.isEmpty())
        {