vcl/source/gdi/salmisc.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 92edab3d95ff5ee8a81a453b3224157839dfd32c
Author: Tomaž Vajngerl <[email protected]>
AuthorDate: Wed Apr 17 22:55:01 2024 +0900
Commit: Tomaž Vajngerl <[email protected]>
CommitDate: Thu Apr 18 14:11:26 2024 +0200
tdf#160016 tdf#160704 Set the direction from src in StretchAndConvert
The direction of the BitmapBuffer was never set, so it defaulted
to BottomUp. The best is to set the direction to be the same as
source - It's unlikely they would be different.
Regression from 6588c30ed4477627b2623560ca867682b189bc80
"vcl: separate scanline direction from ScanlineFormat"
Change-Id: I0e02106309141d09160defee0a0d72d34642a6ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166182
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <[email protected]>
diff --git a/vcl/source/gdi/salmisc.cxx b/vcl/source/gdi/salmisc.cxx
index ed210bf8475c..b1833855ab8c 100644
--- a/vcl/source/gdi/salmisc.cxx
+++ b/vcl/source/gdi/salmisc.cxx
@@ -234,6 +234,8 @@ std::optional<BitmapBuffer> StretchAndConvert(
FncSetPixel pFncSetPixel;
std::optional<BitmapBuffer> pDstBuffer(std::in_place);
+
+ pDstBuffer->meDirection = rSrcBuffer.meDirection;
// set function for getting pixels
pFncGetPixel = BitmapReadAccess::GetPixelFunction(rSrcBuffer.meFormat);
if( !pFncGetPixel )