diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-04 18:06:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-05 08:40:13 +0100 |
commit | 7c52337f9517135db13d75ecbbc10d7e26e01489 (patch) | |
tree | 30a4f36c95dabd937144e3021adefa0c0a80b52c /sd | |
parent | b22a0178530f5b41e40b2cc2719d9e6062ea9d1a (diff) |
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>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/CustomAnimationEffect.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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()) { |