Skip to content
Permalink
Browse files
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 0ed6309c814596a6b813ad33bf1156ee667e928e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/dxf/qgsdxfexport.cpp
@@ -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 );

0 comments on commit 0ed6309

Please sign in to comment.