diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx index 28af8c915d4b..8fc0ed83b8bf 100644 --- a/vcl/source/filter/jpeg/jpegc.cxx +++ b/vcl/source/filter/jpeg/jpegc.cxx @@ -177,16 +177,6 @@ void ReadJPEG( JPEGReader* pJPEGReader, void* pInputStream, long* pLines, pCYMKBuffer.resize(nWidth * 4); } - const ScanlineFormat nFormat = pAccess->GetScanlineFormat(); - - bool bTopDown = true; - - if (( bGray && nFormat == ScanlineFormat::N8BitPal) || - (!bGray && nFormat == ScanlineFormat::N24BitTcRgb)) - { - bTopDown = pAccess->IsTopDown(); - } - std::unique_ptr pCols; if (bGray) @@ -228,9 +218,6 @@ void ReadJPEG( JPEGReader* pJPEGReader, void* pInputStream, long* pLines, jpeg_read_scanlines(&cinfo, reinterpret_cast(&p), 1); } - if (!bTopDown) - yIndex = nHeight - 1 - yIndex; - if (bGray) { for (long x = 0; x < nWidth; ++x)