Skip to content
Permalink
Browse files
Loop optimisation
  • Loading branch information
mhugent committed Dec 12, 2012
1 parent fe7d4fb commit 9ae2f59049d175aab424fe77c8be5685fc83d52b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/raster/qgspalettedrasterrenderer.cpp
@@ -173,7 +173,8 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con

unsigned int* outputData = ( unsigned int* )( outputBlock->data() );

for ( size_t i = 0; i < ( size_t )width*height; i++ )
size_t rasterSize = ( size_t )width * height;
for ( size_t i = 0; i < rasterSize; ++i )
{
int val = ( int ) inputBlock->value( i );
if ( inputBlock->isNoDataValue( val ) )

0 comments on commit 9ae2f59

Please sign in to comment.