From 7c52337f9517135db13d75ecbbc10d7e26e01489 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 4 Dec 2021 18:06:02 +0200 Subject: 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 --- sd/source/core/CustomAnimationEffect.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sd') diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index aaa5f36dcd83..4477ec35ed83 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()) { -- cgit