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 d509836 commit 0b912cbfd021304ba35ea624216d4fa20d0faaa3
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 0b912cb

Please sign in to comment.