summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2019-02-14 20:49:27 +0000
committerJulien Nabet <serval2412@yahoo.fr>2019-02-15 07:08:33 +0100
commit153c40adacbe1b6b4e8c205f02afabf22fe3c0bf (patch)
tree2d8e890b8c86f2537240e981ddb9299654918762
parentc57dc7d41bd62f933cffab6131edb7252606382d (diff)
Fix typo in code
It passed "make check" on Linux Change-Id: I81d83b9053329a19af4f478d21f8c452dcf39538 Reviewed-on: https://gerrit.libreoffice.org/67849 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--vcl/source/filter/png/PngImageReader.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/png/PngImageReader.cxx b/vcl/source/filter/png/PngImageReader.cxx
index b4778fe5df63..2c83f890e91a 100644
--- a/vcl/source/filter/png/PngImageReader.cxx
+++ b/vcl/source/filter/png/PngImageReader.cxx
@@ -136,8 +136,8 @@ bool reader(SvStream& rStream, BitmapEx& rBitmapEx)
size_t aRowSizeBytes = png_get_rowbytes(pPng, pInfo);
BitmapScopedWriteAccess pWriteAccess(aBitmap);
- ScanlineFormat eFromat = pWriteAccess->GetScanlineFormat();
- if (eFromat == ScanlineFormat::N24BitTcBgr)
+ ScanlineFormat eFormat = pWriteAccess->GetScanlineFormat();
+ if (eFormat == ScanlineFormat::N24BitTcBgr)
png_set_bgr(pPng);
std::vector<png_byte> aRow(aRowSizeBytes, 0);
@@ -166,8 +166,8 @@ bool reader(SvStream& rStream, BitmapEx& rBitmapEx)
BitmapScopedWriteAccess pWriteAccess(aBitmap);
AlphaScopedWriteAccess pWriteAccessAlpha(aBitmapAlpha);
- ScanlineFormat eFromat = pWriteAccess->GetScanlineFormat();
- if (eFromat == ScanlineFormat::N24BitTcBgr)
+ ScanlineFormat eFormat = pWriteAccess->GetScanlineFormat();
+ if (eFormat == ScanlineFormat::N24BitTcBgr)
png_set_bgr(pPng);
std::vector<png_byte> aRow(aRowSizeBytes, 0);