Skip to content

Commit

Permalink
Initialize VirtualLayerProvider's extent to null
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Oct 21, 2023
1 parent 8017a31 commit ec90b80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/virtual/qgsvirtuallayerprovider.cpp
Expand Up @@ -50,6 +50,7 @@ QgsVirtualLayerProvider::QgsVirtualLayerProvider( QString const &uri,
: QgsVectorDataProvider( uri, options, flags )
{
mError.clear();
mExtent.setNull(); // ideally not needed

const QUrl url = QUrl::fromEncoded( uri.toUtf8() );
if ( !url.isValid() )
Expand Down

0 comments on commit ec90b80

Please sign in to comment.