Skip to content
Permalink
Browse files

Fix setSubsetString return value on error

  • Loading branch information
uclaros committed Feb 8, 2020
1 parent 56bb8e9 commit 0b4cc5adaeed099f83a47a527acefa6e2ac8bd86
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/providers/ogr/qgsogrprovider.cpp
@@ -4368,7 +4368,10 @@ OGRLayerH QgsOgrProviderUtils::setSubsetString( OGRLayerH layer, GDALDatasetH ds
}
else
{
OGR_L_SetAttributeFilter( layer, encoding->fromUnicode( subsetString ).constData() );
if ( OGR_L_SetAttributeFilter( layer, encoding->fromUnicode( subsetString ).constData() ) != OGRERR_NONE )
{
return nullptr;
}
subsetLayer = layer;
}

0 comments on commit 0b4cc5a

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