Skip to content
Permalink
Browse files
check if provider is valid
  • Loading branch information
blazek committed Apr 26, 2012
1 parent 7ddadbf commit f7babebf3b73ae039d41d7a0fafa9ad9ee903af7
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/raster/qgsrasterlayer.cpp
@@ -2224,6 +2224,10 @@ void QgsRasterLayer::setDataProvider( QString const & provider )
{
return;
}
if ( !mDataProvider->isValid() )
{
return;
}

setNoDataValue( mDataProvider->noDataValue() );

0 comments on commit f7babeb

Please sign in to comment.