Skip to content

Commit

Permalink
NOT operator has not been considered when it has been a list of one. …
Browse files Browse the repository at this point in the history
…So consider it now.
  • Loading branch information
signedav committed Apr 17, 2023
1 parent e965bb9 commit 8169a53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsogcutils.cpp
Expand Up @@ -2222,6 +2222,12 @@ QDomElement QgsOgcUtilsExprToFilter::expressionInOperatorToOgcFilter( const QgsE
QDomElement eqElem = mDoc.createElement( mFilterPrefix + ":PropertyIsEqualTo" );
eqElem.appendChild( leftNode );
eqElem.appendChild( firstListNode );
if ( node->isNotIn() )
{
QDomElement notElem = mDoc.createElement( mFilterPrefix + ":Not" );
notElem.appendChild( eqElem );
return notElem;
}
return eqElem;
}

Expand Down

0 comments on commit 8169a53

Please sign in to comment.