Skip to content
Permalink
Browse files

Merge pull request #601 from matthias-kuhn/qgsexpression-unprepared

Allow unprepared execution of QgsExpression
  • Loading branch information
NathanW2 committed May 22, 2013
2 parents b7f1987 + 6af9261 commit 3306c7c31a5ee3d9a838ef6b355f7611c0d15088
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsexpression.cpp
@@ -2243,7 +2243,10 @@ QVariant QgsExpression::NodeColumnRef::eval( QgsExpression* /*parent*/, QgsFeatu
{
if ( f )
{
return f->attribute( mIndex );
if ( mIndex >= 0 )
return f->attribute( mIndex );
else
return f->attribute( mName );
}
return QVariant( "[" + mName + "]" );
}

0 comments on commit 3306c7c

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