Followup 858978, fix failing tests

This commit is contained in:
Nyall Dawson 2016-10-26 20:46:32 +10:00
parent 8589788544
commit a042c9decc

View File

@ -4963,7 +4963,7 @@ QVariant QgsExpression::NodeColumnRef::eval( QgsExpression *parent, const QgsExp
}
}
if ( context && context->feature().isValid() )
if ( context && context->hasVariable( QgsExpressionContext::EXPR_FEATURE ) )
{
QgsFeature feature = context->feature();
if ( index >= 0 )