Skip to content
Permalink
Browse files

elif is not a thing in c++

  • Loading branch information
roya0045 committed Nov 14, 2020
1 parent 551d563 commit 2688389332b3e059554abb87444319e4083405b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -5325,7 +5325,7 @@ static QVariant fcnArrayGet( const QVariantList &values, const QgsExpressionCont
const QVariantList list = QgsExpressionUtils::getListValue( values.at( 0 ), parent );
const int pos = QgsExpressionUtils::getNativeIntValue( values.at( 1 ), parent );
if ( pos < list.length() && pos >=0 ) return list.at( pos );
elif ( pos < 0 && ( list.length() + pos ) >= 0 )
else if ( pos < 0 && ( list.length() + pos ) >= 0 )
return list.at( list.length() + pos );
return QVariant();
}

0 comments on commit 2688389

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