diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-09-21 12:17:00 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-07-13 13:19:00 +0200 |
commit | f896bbcffeccd27248f908d2628d03dddf83ea94 (patch) | |
tree | ffbf0300461780c94e897cad2ad29906695ac91d /slideshow/source/engine/slide/slideimpl.cxx | |
parent | 6086d896183a529d4a0b83d4862970c8f320b0aa (diff) |
basegfx: replace typedef with a class B2ISize based on Size2D
Change-Id: Iaf7d02bb236f81a38a67a1430a718b6c3c78efae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139708
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index bf07e18acf60..57a76f752767 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -322,7 +322,7 @@ SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDra xDrawPage)), mpSubsettableShapeManager( mpShapeManager ), mpBox2DWorld( std::make_shared<box2d::utils::box2DWorld>( - basegfx::B2DVector( getSlideSizeImpl() ) ) ), + basegfx::B2DVector(getSlideSizeImpl().getWidth(), getSlideSizeImpl().getHeight()) ) ), maContext( mpSubsettableShapeManager, rEventQueue, rEventMultiplexer, @@ -336,7 +336,7 @@ SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDra mpBox2DWorld ), mrCursorManager( rCursorManager ), maAnimations( maContext, - basegfx::B2DVector( getSlideSizeImpl() ) ), + basegfx::B2DVector(getSlideSizeImpl().getWidth(), getSlideSizeImpl().getHeight()) ), maPolygons(std::move(rPolyPolygonVector)), maUserPaintColor(aUserPaintColor), mdUserPaintStrokeWidth(dUserPaintStrokeWidth), @@ -569,9 +569,8 @@ SlideBitmapSharedPtr SlideImpl::getCurrentSlideBitmap( const UnoViewSharedPtr& r } SlideBitmapSharedPtr& rBitmap( aIter->second.at( meAnimationState )); - const ::basegfx::B2ISize& rSlideSize( - getSlideSizePixel( ::basegfx::B2DVector( getSlideSize() ), - rView )); + auto aSize = getSlideSizePixel(basegfx::B2DVector(getSlideSize().getWidth(), getSlideSize().getHeight()), rView); + const basegfx::B2ISize rSlideSize(aSize.getX(), aSize.getY()); // is the bitmap valid (actually existent, and of correct // size)? @@ -920,7 +919,7 @@ void SlideImpl::applyShapeAttributes( extractValue( bVisible, rShapeProp.Value, pShape, - basegfx::B2DVector(getSlideSize()) )) + basegfx::B2DVector(getSlideSize().getWidth(), getSlideSize().getHeight()) )) { pAttrShape->setVisibility( bVisible ); } |