diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-05-26 15:52:51 +0200 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-05-26 15:52:51 +0200 |
commit | 707ee405a682b71a07c31e95c7c564552c272927 (patch) | |
tree | 0986f85216d1dc786a881f107ba40d30b301c1aa /vcl | |
parent | c5934ada09feec288519cbdfbe1c0c988a2fceec (diff) | |
parent | a14e90df9620b4e4259d20197660f2dac67628d7 (diff) |
merging
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pngread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx index b7eb8e5f50bf..11971db34378 100644 --- a/vcl/source/gdi/pngread.cxx +++ b/vcl/source/gdi/pngread.cxx @@ -703,7 +703,7 @@ void PNGReaderImpl::ImplGetGrayPalette( sal_uInt16 nBitDepth ) nBitDepth = 8; sal_uInt16 nPaletteEntryCount = 1 << nBitDepth; - sal_uInt32 nAdd = 256 / (nPaletteEntryCount - 1); + sal_uInt32 nAdd = nBitDepth ? 256 / (nPaletteEntryCount - 1) : 0; // no bitdepth==2 available // but bitdepth==4 with two unused bits is close enough |