[Libreoffice-commits] core.git: Branch 'aoo/trunk' - vcl/source

Herbert Dürr hdu at apache.org
Tue Sep 10 07:08:52 PDT 2013


 vcl/source/gdi/pngread.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9bab8d99eab92b6ea0e171ac18d45e2283b86e19
Author: Herbert Dürr <hdu at apache.org>
Date:   Tue Sep 10 13:55:38 2013 +0000

    #i122985# fix compile error in pngreader.cxx for product build with debug enabled

diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 62a424c..43d3545 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -1414,8 +1414,10 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
                 {
                     OSL_ENSURE(mpScanline, "No Scanline allocated (!)");
                     OSL_ENSURE(mpScanlineAlpha, "No ScanlineAlpha allocated (!)");
+#ifdef DBG_UTIL
                     OSL_ENSURE(mnAllocSizeScanline >= maOrigSize.Width() * 3, "Allocated Scanline too small (!)");
                     OSL_ENSURE(mnAllocSizeScanlineAlpha >= maOrigSize.Width(), "Allocated ScanlineAlpha too small (!)");
+#endif
                     sal_uInt8* pScanline(mpScanline);
                     sal_uInt8* pScanlineAlpha(mpScanlineAlpha);
 
@@ -1549,7 +1551,9 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
                 if(bDoDirectScanline)
                 {
                     OSL_ENSURE(mpScanline, "No Scanline allocated (!)");
+#ifdef DBG_UTIL
                     OSL_ENSURE(mnAllocSizeScanline >= maOrigSize.Width() * 3, "Allocated Scanline too small (!)");
+#endif
                     sal_uInt8* pScanline(mpScanline);
 
                     for(sal_uInt32 nX(0); nX < maOrigSize.Width(); nX++, pTmp += 3)


More information about the Libreoffice-commits mailing list