Skip to content
Permalink
Browse files

Fix atlas_geometry variable value

  • Loading branch information
nyalldawson committed Sep 7, 2015
1 parent 435aeed commit 2fe6d8c04d8760da980c9955d5b6638fb2181257
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpressioncontext.cpp
@@ -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;

0 comments on commit 2fe6d8c

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