Skip to content
Permalink
Browse files

Set global and project expression scope for dxf export

  • Loading branch information
mhugent committed Apr 10, 2018
1 parent abf2fc6 commit c7c37bd1d6d60a373013df8392e5c785a45df81a
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/dxf/qgsdxfexport.cpp
@@ -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();

0 comments on commit c7c37bd

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