summaryrefslogtreecommitdiff
path: root/vcl/headless/BitmapHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/headless/BitmapHelper.cxx')
-rw-r--r--vcl/headless/BitmapHelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/headless/BitmapHelper.cxx b/vcl/headless/BitmapHelper.cxx
index 0f21780144e8..cfa9f1556eeb 100644
--- a/vcl/headless/BitmapHelper.cxx
+++ b/vcl/headless/BitmapHelper.cxx
@@ -40,7 +40,8 @@ BitmapHelper::BitmapHelper(const SalBitmap& rSourceBitmap, const bool bForceARGB
const SalTwoRect aTwoRect
= { 0, 0, pSrc->mnWidth, pSrc->mnHeight, 0, 0, pSrc->mnWidth, pSrc->mnHeight };
std::optional<BitmapBuffer> pTmp
- = (pSrc->meFormat == SVP_24BIT_FORMAT)
+ = (pSrc->meFormat == SVP_24BIT_FORMAT
+ && pSrc->meDirection == ScanlineDirection::TopDown)
? FastConvert24BitRgbTo32BitCairo(pSrc)
: StretchAndConvert(*pSrc, aTwoRect, SVP_CAIRO_FORMAT);
aTmpBmp.Create(std::move(pTmp));