Skip to content

Commit

Permalink
Fix unwanted double reading in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Dec 12, 2012
1 parent 98351f2 commit 5c76a5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/raster/qgsrasterdataprovider.cpp
Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c76a5f

Please sign in to comment.