Skip to content
Permalink
Browse files

add layer scope in context to evaluate the constraint expression

  • Loading branch information
pblottiere committed May 19, 2016
1 parent 3947cb9 commit 6489b62b4a0a7946d7b2be793d75a1a123e76b4f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
@@ -114,6 +114,7 @@ void QgsEditorWidgetWrapper::updateConstraint( const QgsFeature &ft )
{
QgsExpressionContext context =
QgsExpressionContextUtils::createFeatureBasedContext( ft, *ft.fields() );
context << QgsExpressionContextUtils::layerScope( layer() );

context.setFeature( ft );
QgsExpression expr( expression );

0 comments on commit 6489b62

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