Skip to content

Commit 5c76a5f

Browse files
committed
Fix unwanted double reading in last commit
1 parent 98351f2 commit 5c76a5f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/core/raster/qgsrasterdataprovider.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ QgsRasterBlock * QgsRasterDataProvider::block( int theBandNo, QgsRectangle cons
9090
tmpYRes = yRes;
9191
}
9292

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

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

0 commit comments

Comments
 (0)