Skip to content
Permalink
Browse files

layout

  • Loading branch information
roya0045 committed Nov 14, 2020
1 parent 2688389 commit a36de0942b6bcc9cbb13bf5eaa76517cc32e83e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/expression/qgsexpressionfunction.cpp
@@ -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();

0 comments on commit a36de09

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