summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/filter/jpeg/jpegc.cxx13
1 files changed, 0 insertions, 13 deletions
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<BitmapColor[]> pCols;
if (bGray)
@@ -228,9 +218,6 @@ void ReadJPEG( JPEGReader* pJPEGReader, void* pInputStream, long* pLines,
jpeg_read_scanlines(&cinfo, reinterpret_cast<JSAMPARRAY>(&p), 1);
}
- if (!bTopDown)
- yIndex = nHeight - 1 - yIndex;
-
if (bGray)
{
for (long x = 0; x < nWidth; ++x)