Skip to content

Commit

Permalink
only set subset string when non empty
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Oct 19, 2023
1 parent 339cc72 commit 689a935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/vpc/qgsvirtualpointcloudprovider.cpp
Expand Up @@ -407,7 +407,7 @@ void QgsVirtualPointCloudProvider::loadSubIndex( int i )
sl.index()->load( sl.uri() );

// if expression is broken or index is missing a required field, set to "false" so it returns no points
if ( !sl.index()->setSubsetString( mSubsetString ) )
if ( !mSubsetString.isEmpty() && !sl.index()->setSubsetString( mSubsetString ) )
sl.index()->setSubsetString( QStringLiteral( "false" ) );

emit subIndexLoaded( i );
Expand Down

0 comments on commit 689a935

Please sign in to comment.