Skip to content

Commit

Permalink
Correctly set layer validity for vector tile layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 24, 2023
1 parent da9eb09 commit 41b9a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsvectortilelayer.cpp
Expand Up @@ -112,7 +112,7 @@ bool QgsVectorTileLayer::loadDataSource()
setExtent( mDataProvider->extent() );
}

return true;
return mDataProvider && mDataProvider->isValid();
}

QgsVectorTileLayer::~QgsVectorTileLayer() = default;
Expand Down

0 comments on commit 41b9a4d

Please sign in to comment.