drawinglayer/source/primitive2d/controlprimitive2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 02a15f05b469c4ab0efe79a8866fa2579f96acb8 Author: Noel Grandin <[email protected]> AuthorDate: Thu Aug 14 12:25:16 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Aug 14 15:35:48 2025 +0200 no need to use BitmapEx here Change-Id: I6119c55955dd66fceb4e5359b530624db08b432a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189590 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/drawinglayer/source/primitive2d/controlprimitive2d.cxx b/drawinglayer/source/primitive2d/controlprimitive2d.cxx index d80d2dbebf44..f880d7502c10 100644 --- a/drawinglayer/source/primitive2d/controlprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/controlprimitive2d.cxx @@ -176,7 +176,7 @@ namespace drawinglayer::primitive2d xControlView->draw(0, 0); // get bitmap - const BitmapEx aContent(aVirtualDevice->GetBitmap(Point(), aSizePixel)); + const Bitmap aContent(aVirtualDevice->GetBitmap(Point(), aSizePixel)); // snap translate and scale to discrete position (pixel) to avoid sub-pixel offset and blurring further basegfx::B2DVector aSnappedTranslate(basegfx::fround(rViewInformation.getObjectToViewTransformation() * aTranslate)); @@ -190,7 +190,7 @@ namespace drawinglayer::primitive2d // create primitive xRetval = new BitmapPrimitive2D( - Bitmap(aContent), + aContent, aBitmapTransform); } catch( const uno::Exception& )
