Skip to content

Commit

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

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

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

0 comments on commit 0ed6309

Please sign in to comment.