diff options
-rw-r--r-- | slideshow/source/engine/shapes/drawshape.cxx | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx index c023119ded06..00a8894f5ef0 100644 --- a/slideshow/source/engine/shapes/drawshape.cxx +++ b/slideshow/source/engine/shapes/drawshape.cxx @@ -133,26 +133,11 @@ namespace slideshow ViewShape::RenderArgs DrawShape::getViewRenderArgs() const { - uno::Reference<beans::XPropertySet> const xPropSet(mxPage, - uno::UNO_QUERY_THROW); - sal_Int32 nWidth = 0; - sal_Int32 nHeight = 0; - xPropSet->getPropertyValue("Width") >>= nWidth; - xPropSet->getPropertyValue("Height") >>= nHeight; - basegfx::B2DRectangle slideRect(0, 0, nWidth, nHeight); - basegfx::B2DRectangle origBounds(maBounds); - origBounds.intersect(slideRect); - basegfx::B2DRectangle updateBounds(getUpdateArea()); - updateBounds.intersect(slideRect); - basegfx::B2DRectangle bounds(getBounds()); - bounds.intersect(slideRect); - basegfx::B2DRectangle unitBounds(getActualUnitShapeBounds()); - unitBounds.intersect(slideRect); return ViewShape::RenderArgs( - origBounds, - updateBounds, - bounds, - unitBounds, + maBounds, + getUpdateArea(), + getBounds(), + getActualUnitShapeBounds(), mpAttributeLayer, maSubsetting.getActiveSubsets(), mnPriority); |