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 nyalldawson committed Nov 6, 2021
1 parent cd6c000 commit 64b92c2
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 64b92c2

Please sign in to comment.