Skip to content

Commit d9a3c99

Browse files
committedDec 12, 2012
Add comment
1 parent 67f7af2 commit d9a3c99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/raster/qgspalettedrasterrenderer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ QgsRasterBlock * QgsPalettedRasterRenderer::block( int bandNo, QgsRectangle con
171171
return outputBlock;
172172
}
173173

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

176178
size_t rasterSize = ( size_t )width * height;

0 commit comments

Comments
 (0)
Please sign in to comment.