Skip to content

Commit

Permalink
Set global and project expression scope for dxf export
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Apr 10, 2018
1 parent abf2fc6 commit c7c37bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -967,6 +967,9 @@ void QgsDxfExport::writeEntities()
ctx.setScaleFactor( 96.0 / 25.4 );
ctx.setMapToPixel( QgsMapToPixel( 1.0 / mFactor, mExtent.center().x(), mExtent.center().y(), mExtent.width() * mFactor, mExtent.height() * mFactor, 0 ) );

ctx.expressionContext().appendScope( QgsExpressionContextUtils::projectScope() );
ctx.expressionContext().appendScope( QgsExpressionContextUtils::globalScope() );

// label engine
QgsLabelingEngineV2 engine;
engine.readSettingsFromProject();
Expand Down

0 comments on commit c7c37bd

Please sign in to comment.