summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorsj <sj@openoffice.org>2010-04-09 18:04:50 +0200
committersj <sj@openoffice.org>2010-04-09 18:04:50 +0200
commita14e90df9620b4e4259d20197660f2dac67628d7 (patch)
tree93f9dbd65e9e932c6244c56aa3135f3470fb88b2 /vcl
parent0768a7d2726ce4f0772b52d95eeb23143336655c (diff)
impress190: #110673# applied patch (removed some Boundchecker warnings)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/pngread.cxx2
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