Skip to content

Commit

Permalink
test if crs are equal
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15731 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Apr 16, 2011
1 parent c10c0e5 commit 656e377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsrasterdataprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void QgsRasterDataProvider::readBlock( int bandNo, QgsRectangle const & viewExt
QgsDebugMsg( "Entered" );
QgsDebugMsg( "viewExtent = " + viewExtent.toString() );

if ( ! theSrcCRS.isValid() || ! theDestCRS.isValid() )
if ( ! theSrcCRS.isValid() || ! theDestCRS.isValid() || theSrcCRS == theDestCRS )
{
readBlock( bandNo, viewExtent, width, height, data );
return;
Expand Down

0 comments on commit 656e377

Please sign in to comment.