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

Caolán McNamara caolanm at redhat.com
Wed Jan 31 09:22:04 UTC 2018


 vcl/source/gdi/bmpacc.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6cf883c29090d7caf9e1a5546309f1bf087b0bd8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jan 31 09:20:34 2018 +0000

    ofz: speed up jpg fuzzer a tad
    
    Change-Id: Ie44698565865b3aacc1ebd0a3e41d5001bf8e09a

diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx
index e279ea7d0857..858e9b2f542f 100644
--- a/vcl/source/gdi/bmpacc.cxx
+++ b/vcl/source/gdi/bmpacc.cxx
@@ -431,9 +431,9 @@ void BitmapWriteAccess::CopyScanline( long nY, ConstScanline aSrcScanline,
             if( pFncGetPixel )
             {
                 const ColorMask aDummyMask;
-
-                for( long nX = 0, nWidth = mpBuffer->mnWidth; nX < nWidth; nX++ )
-                    SetPixel( nY, nX, pFncGetPixel( aSrcScanline, nX, aDummyMask ) );
+                Scanline pScanline = GetScanline(nY);
+                for (long nX = 0, nWidth = mpBuffer->mnWidth; nX < nWidth; ++nX)
+                    SetPixelOnData(pScanline, nX, pFncGetPixel(aSrcScanline, nX, aDummyMask));
             }
         }
     }


More information about the Libreoffice-commits mailing list