From 29fc0ec9930fc1c09c0e79d41c56f93ae853c054 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 2 Dec 2023 22:27:34 +0200 Subject: Split the *Bitmap::CopyPixel functions into the two entire separate cases they want to handle, there is no reason to mix the two different cases like this. Change-Id: I38e99e7ad6168a84e7a744f61407887825158902 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160248 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/source/uiconfiguration/ImageList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/source/uiconfiguration/ImageList.cxx b/framework/source/uiconfiguration/ImageList.cxx index 0e64d219c166..5fb0f44f65b6 100644 --- a/framework/source/uiconfiguration/ImageList.cxx +++ b/framework/source/uiconfiguration/ImageList.cxx @@ -56,7 +56,7 @@ BitmapEx ImageList::GetAsHorizontalStrip() const tools::Rectangle aDestRect( Point( nIdx * aImageSize.Width(), 0 ), aImageSize ); ImageAryData *pData = maImages[ nIdx ].get(); BitmapEx aTmp = pData->maImage.GetBitmapEx(); - aResult.CopyPixel( aDestRect, aSrcRect, &aTmp); + aResult.CopyPixel( aDestRect, aSrcRect, aTmp); } return aResult; -- cgit