Navigation Menu

Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 committed Nov 14, 2020
1 parent 2688389 commit a36de09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -5324,7 +5324,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 );
if ( pos < list.length() && pos >= 0 ) return list.at( pos );
else if ( pos < 0 && ( list.length() + pos ) >= 0 )
return list.at( list.length() + pos );
return QVariant();
Expand Down

0 comments on commit a36de09

Please sign in to comment.