sd/source/core/CustomAnimationEffect.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 7c52337f9517135db13d75ecbbc10d7e26e01489 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Dec 4 18:06:02 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Dec 5 08:40:13 2021 +0100 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.gran...@collabora.co.uk> 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()) {