Skip to content
Permalink
Browse files

Allow unprepared execution of QgsExpression

  • Loading branch information
m-kuhn committed May 22, 2013
1 parent b7f1987 commit 6af9261fa3f3cce072d3256a374940f77f4a08dd
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 6af9261

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