Skip to content
Permalink
Browse files
dxf export: add map settings scope to labeling expression render context
  • Loading branch information
jef-n authored and github-actions committed Nov 6, 2021
1 parent 043eae9 commit d6a61073eef9bf92eb5e89c21f0244c92e30b331
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/dxf/qgsdxfexport.cpp
@@ -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 );

0 comments on commit d6a6107

Please sign in to comment.