mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
layout
This commit is contained in:
parent
2688389332
commit
a36de0942b
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user