Skip to content
Permalink
Browse files

qgsdefaultsearchwidgetwrapper.cpp: make operator precedence obvious

  • Loading branch information
rouault committed Jun 1, 2020
1 parent 46d1e5c commit 175d36813d5e23b1bc8797ff80b1dbd56779c9e4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp
@@ -204,11 +204,11 @@ QString QgsDefaultSearchWidgetWrapper::createExpression( QgsSearchWidgetWrapper:
if ( flags & EqualTo || flags & NotEqualTo )
{
if ( mCheckbox && mCheckbox->isChecked() )
return fieldName + ( flags & EqualTo ? "=" : "<>" )
return fieldName + ( ( flags & EqualTo ) ? "=" : "<>" )
+ QgsExpression::quotedString( mLineEdit->text() );
else
return QStringLiteral( "lower(%1)" ).arg( fieldName )
+ ( flags & EqualTo ? "=" : "<>" ) +
+ ( ( flags & EqualTo ) ? "=" : "<>" ) +
QStringLiteral( "lower(%1)" ).arg( QgsExpression::quotedString( mLineEdit->text() ) );
}
else if ( flags & Contains || flags & DoesNotContain || flags & StartsWith || flags & EndsWith )

0 comments on commit 175d368

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