Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Select Features by wrong Rectangle/Polygon
  • Loading branch information
sdikiy authored and github-actions[bot] committed Mar 3, 2021
1 parent 7c6ca38 commit 046dc4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsmaptoolselectutils.cpp
Expand Up @@ -236,6 +236,8 @@ QgsFeatureIds QgsMapToolSelectUtils::getMatchingFeatures( QgsMapCanvas *canvas,
{
// a zero width buffer is safer than calling make valid here!
selectGeomTrans = selectGeomTrans.buffer( 0, 1 );
if ( selectGeomTrans.isEmpty() )
return newSelectedFeatures;
}

std::unique_ptr< QgsGeometryEngine > selectionGeometryEngine( QgsGeometry::createGeometryEngine( selectGeomTrans.constGet() ) );
Expand Down

0 comments on commit 046dc4e

Please sign in to comment.