Skip to content

Commit

Permalink
check if provider is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Apr 26, 2012
1 parent 7ddadbf commit f7babeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -2224,6 +2224,10 @@ void QgsRasterLayer::setDataProvider( QString const & provider )
{
return;
}
if ( !mDataProvider->isValid() )
{
return;
}

setNoDataValue( mDataProvider->noDataValue() );

Expand Down

0 comments on commit f7babeb

Please sign in to comment.