From f31d98f63c4ad11897e0a961fb378fdf7989f4d3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Nov 2016 15:26:06 +0200 Subject: loplugin:expandablemethods in avmedia..canvas Change-Id: Ic230f1ef6b1dbe796ac7862a1a7e6a718f9e4e54 Reviewed-on: https://gerrit.libreoffice.org/30753 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- canvas/source/tools/canvascustomspritehelper.cxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'canvas') diff --git a/canvas/source/tools/canvascustomspritehelper.cxx b/canvas/source/tools/canvascustomspritehelper.cxx index 49a266ee6a91..37d010cd932c 100644 --- a/canvas/source/tools/canvascustomspritehelper.cxx +++ b/canvas/source/tools/canvascustomspritehelper.cxx @@ -264,7 +264,10 @@ namespace canvas if( aPoint != maPosition ) { - const ::basegfx::B2DRectangle& rBounds( getFullSpriteRect() ); + const ::basegfx::B2DRectangle& rBounds + = getUpdateArea( ::basegfx::B2DRectangle( 0.0, 0.0, + maSize.getX(), + maSize.getY() ) ); if( mbActive ) { @@ -453,14 +456,6 @@ namespace canvas maPosition + maCurrClipBounds.getMinimum(), maPosition + maCurrClipBounds.getMaximum() ); } - - ::basegfx::B2DRange CanvasCustomSpriteHelper::getFullSpriteRect() const - { - // Internal! Only call with locked object mutex! - return getUpdateArea( ::basegfx::B2DRectangle( 0.0, 0.0, - maSize.getX(), - maSize.getY() ) ); - } } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit