summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-24 08:35:36 +0100
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-05 08:17:24 -0500
commit4078977daa14c0c50baf0acfe2028e6551ab2278 (patch)
treec048cf8512add06647140ce36a65e92944c8224a
parent7f2348d84c7abd886da9cf949085fd3a8b51049c (diff)
pQLine2 will be non-zero in any case that nHeight is non-zero
Change-Id: Ic0fcf6c095dd2ebb2bfd901ac176229a95edd630 (cherry picked from commit 2670d43a840276d990a1c3bd993c06faa42e8b1d) (cherry picked from commit d74df1175c6f733026b30e03043b1eaa413cd23d)
-rw-r--r--vcl/source/gdi/bitmap3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 23ed38a31bd8..f0608a0b31af 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -1560,6 +1560,8 @@ bool Bitmap::ImplDitherFloyd16()
pQLine2[ nX ] = pReadAcc->GetPixel( nYTmp, nX );
}
+ assert(pQLine2 || nHeight == 0);
+
for( long nY = 0; nY < nHeight; nY++, nYTmp++ )
{
// First RowPixel