Skip to content

Commit

Permalink
elif is not a thing in c++
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 committed Nov 14, 2020
1 parent 551d563 commit 2688389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2688389

Please sign in to comment.