Skip to content

Commit

Permalink
wms-c: don't crash if tile matrix set isn't available anymore (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 17, 2014
1 parent 8f8ea0e commit c2a8ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -590,7 +590,7 @@ bool QgsWmsProvider::setImageCrs( QString const & crs )

setProperty( "resolutions", resolutions );

if ( mTileLayer == 0 && mTileMatrixSet == 0 )
if ( mTileLayer == 0 || mTileMatrixSet == 0 )
{
appendError( ERR( tr( "Tile layer or tile matrix set not found" ) ) );
return false;
Expand Down

0 comments on commit c2a8ad0

Please sign in to comment.