Skip to content

Commit

Permalink
dxf export: add map settings scope to labeling expression render context
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n authored and github-actions[bot] committed Nov 6, 2021
1 parent 043eae9 commit d6a6107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -759,6 +759,7 @@ void QgsDxfExport::prepareRenderers()

mRenderContext.expressionContext().appendScope( QgsExpressionContextUtils::projectScope( QgsProject::instance() ) );
mRenderContext.expressionContext().appendScope( QgsExpressionContextUtils::globalScope() );
mRenderContext.expressionContext().appendScope( QgsExpressionContextUtils::mapSettingsScope( mMapSettings ) );

mLabelingEngine = qgis::make_unique<QgsDefaultLabelingEngine>();
mLabelingEngine->setMapSettings( mMapSettings );
Expand Down

0 comments on commit d6a6107

Please sign in to comment.