[Libreoffice-commits] core.git: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Feb 15 06:09:01 UTC 2019


 vcl/source/filter/png/PngImageReader.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 153c40adacbe1b6b4e8c205f02afabf22fe3c0bf
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Thu Feb 14 20:49:27 2019 +0000
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Feb 15 07:08:33 2019 +0100

    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 at yahoo.fr>

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);


More information about the Libreoffice-commits mailing list