summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pngread.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-08 14:07:21 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-08 14:07:21 +0000
commita3ed85d72edc99ab57f43aac5ad15b034346f13f (patch)
tree9fdb0fb0f79bd2333b7b3070fc455d9147d60201 /vcl/source/gdi/pngread.cxx
parenta69566844d7c6d8f0f174a6c3f6c6b99daa05c2a (diff)
INTEGRATION: CWS ooo20040704 (1.5.4); FILE MERGED
2004/07/20 06:46:47 svesik 1.5.4.2: RESYNC: (1.5-1.6); FILE MERGED 2004/07/01 12:06:52 waratah 1.5.4.1: #i30874# Add initial values to potentially uninitialised values
Diffstat (limited to 'vcl/source/gdi/pngread.cxx')
-rw-r--r--vcl/source/gdi/pngread.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 6b69f96e8633..ce35c4b6bce0 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pngread.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2004-06-28 16:23:30 $
+ * last change: $Author: rt $ $Date: 2004-09-08 15:07:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -603,6 +603,8 @@ void PNGReaderImpl::ImplGetGrayPalette( sal_uInt32 nDepth )
case 2 : nAdd = 85; break;
case 4 : nAdd = 17; break;
case 8 : nAdd = 1; break;
+ // TODO What is the correct value?
+ default: nAdd = 1; break;
}
for ( sal_uInt32 i = 0; nStart < 256; i++, nStart += nAdd )
@@ -955,6 +957,10 @@ void PNGReaderImpl::ImplResizeScanline( void )
mnYpos++;
nScansize = mnWidth;
break;
+
+ default:
+ nScansize = 0;
+ break;
}
if ( ( mnYpos >= mnHeight ) || ( nX >= mnWidth ) ) // is pass to be skipped ?
@@ -990,7 +996,8 @@ void PNGReaderImpl::ImplGetFilter ( sal_uInt32 nXStart, sal_uInt32 nXAdd )
BYTE* p2;
BYTE* p3;
BYTE* p4;
- BYTE nFilterType, nCol;
+ BYTE nFilterType;
+ BYTE nCol = 0;
sal_uInt32 nXIndex, nX, nY = mnYpos, n1, n2, na, nb, nc;
sal_Int32 np, npa, npb, npc;