Skip to content

Commit

Permalink
Fix unjoinable features can get incorrectly added to both outputs whe…
Browse files Browse the repository at this point in the history
…n a separate unjoined feature output is set
  • Loading branch information
nyalldawson committed Jan 2, 2020
1 parent 75cf5f2 commit 16c83e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmjoinbylocation.cpp
Expand Up @@ -218,7 +218,8 @@ QVariantMap QgsJoinByLocationAlgorithm::processAlgorithm( const QVariantMap &par
{
if ( feedback->isCanceled() )
break;
if ( mJoinedFeatures )

if ( mJoinedFeatures && !mDiscardNonMatching )
{
QgsAttributes attributes = f2.attributes();
attributes.append( emptyAttributes );
Expand Down

0 comments on commit 16c83e0

Please sign in to comment.