diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 15:08:35 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 15:08:35 +0000 |
commit | b3b49a202b3cf9bc597b7bf96e23af17827cae66 (patch) | |
tree | d7d9c6131700b5b358ff0c4111695cdb62231634 /vcl/source/gdi/bitmap4.cxx | |
parent | 5b204f972ef21fa6f37cf421a1818beff914d179 (diff) |
INTEGRATION: CWS vcl80 (1.9.262); FILE MERGED
2007/07/12 09:14:15 pl 1.9.262.2: RESYNC: (1.9-1.10); FILE MERGED
2007/07/04 15:53:48 pl 1.9.262.1: #i79227# fix some edge cases (thanks cmc)
Diffstat (limited to 'vcl/source/gdi/bitmap4.cxx')
-rw-r--r-- | vcl/source/gdi/bitmap4.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx index 750e44d9819d..ab0a1b20ea64 100644 --- a/vcl/source/gdi/bitmap4.cxx +++ b/vcl/source/gdi/bitmap4.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bitmap4.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: hr $ $Date: 2007-06-27 20:10:08 $ + * last change: $Author: hr $ $Date: 2007-07-31 16:08:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -308,11 +308,14 @@ BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin pRows[ nHeight + 1 ] = pRows[ nHeight ]; // read first three rows of bitmap color - for( i = 0; i < nWidth2; i++ ) + if (nHeight2 > 2) { - pColRow1[ i ] = pReadAcc->GetColor( pRows[ 0 ], pColm[ i ] ); - pColRow2[ i ] = pReadAcc->GetColor( pRows[ 1 ], pColm[ i ] ); - pColRow3[ i ] = pReadAcc->GetColor( pRows[ 2 ], pColm[ i ] ); + for( i = 0; i < nWidth2; i++ ) + { + pColRow1[ i ] = pReadAcc->GetColor( pRows[ 0 ], pColm[ i ] ); + pColRow2[ i ] = pReadAcc->GetColor( pRows[ 1 ], pColm[ i ] ); + pColRow3[ i ] = pReadAcc->GetColor( pRows[ 2 ], pColm[ i ] ); + } } // do median filtering |