diff options
author | obo <obo@openoffice.org> | 2010-06-15 06:55:41 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-06-15 06:55:41 +0200 |
commit | 96e2acd4ec40ff2948c09ca17229feb793208e0d (patch) | |
tree | d5173519b5cee79fc6a39aefd1f82a7097a7a092 /vcl/source/gdi | |
parent | 59fed6a8eda9f1ed99a0ed11b12c75b8d5d606b2 (diff) | |
parent | 3ebfe37dad5e1761a288ccfe0c8963bdaf1682ea (diff) |
CWS-TOOLING: integrate CWS impress190
Diffstat (limited to 'vcl/source/gdi')
-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 |