Skip to content
Permalink
Browse files
Fix unwanted double reading in last commit
  • Loading branch information
mhugent committed Dec 12, 2012
1 parent 98351f2 commit 5c76a5f7035662d63377641a162f698545fcde2e
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/core/raster/qgsrasterdataprovider.cpp
@@ -90,7 +90,6 @@ QgsRasterBlock * QgsRasterDataProvider::block( int theBandNo, QgsRectangle cons
tmpYRes = yRes;
}

#if 1 //disable for performance reason?
if ( tmpExtent != theExtent ||
tmpXRes > xRes || tmpYRes > yRes )
{
@@ -192,8 +191,6 @@ QgsRasterBlock * QgsRasterDataProvider::block( int theBandNo, QgsRectangle cons
{
readBlock( theBandNo, theExtent, theWidth, theHeight, block->data() );
}
#endif //0
readBlock( theBandNo, theExtent, theWidth, theHeight, block->data() );

// apply user no data values
// TODO: there are other readBlock methods where no data are not applied

0 comments on commit 5c76a5f

Please sign in to comment.