Skip to content

Commit

Permalink
Fix atlas_geometry variable value
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 7, 2015
1 parent 435aeed commit 2fe6d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpressioncontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ QgsExpressionContextScope* QgsExpressionContextUtils::atlasScope( const QgsAtlas
scope->setFeature( atlasFeature );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "atlas_feature", QVariant::fromValue( atlasFeature ), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "atlas_featureid", atlasFeature.id(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "atlas_geometry", atlasFeature.constGeometry(), true ) );
scope->addVariable( QgsExpressionContextScope::StaticVariable( "atlas_geometry", QVariant::fromValue( *atlasFeature.constGeometry() ), true ) );
}

return scope;
Expand Down

0 comments on commit 2fe6d8c

Please sign in to comment.