Skip to content
Permalink
Browse files
Add comment
  • Loading branch information
mhugent committed Dec 12, 2012
1 parent 67f7af2 commit d9a3c993e41826e6feefa31e10a30636f5f1a1b0
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/raster/qgspalettedrasterrenderer.cpp
@@ -171,6 +171,8 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
return outputBlock;
}

//use direct data access instead of QgsRasterBlock::setValue
//because of performance
unsigned int* outputData = ( unsigned int* )( outputBlock->data() );

size_t rasterSize = ( size_t )width * height;

0 comments on commit d9a3c99

Please sign in to comment.