diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-24 08:35:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-24 08:35:36 +0100 |
commit | 2670d43a840276d990a1c3bd993c06faa42e8b1d (patch) | |
tree | b3e48dbd895ef5ac7febf8135de43874ec7e3b66 /vcl/source | |
parent | 040a917c73c0af8635f96d0a097ecf7c61db176b (diff) |
pQLine2 will be non-zero in any case that nHeight is non-zero
Change-Id: Ic0fcf6c095dd2ebb2bfd901ac176229a95edd630
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index 95525fe61cff..08c0cda4d7f4 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -1445,6 +1445,8 @@ bool Bitmap::ImplDitherFloyd16() pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX ); } + assert(pQLine2 || nHeight == 0); + for( long nY = 0; nY < nHeight; nY++, nYTmp++ ) { // First RowPixel |