Skip to content
Permalink
Browse files

wms-c: don't crash if tile matrix set isn't available anymore (fixes #…

  • Loading branch information
jef-n committed Jan 17, 2014
1 parent 8f8ea0e commit c2a8ad0a35894418d98ccc44b02f3b8e8f89de86
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -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;

0 comments on commit c2a8ad0

Please sign in to comment.
You can’t perform that action at this time.