We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1ff1875 commit efdbb87Copy full SHA for efdbb87
src/core/dxf/qgsdxfexport.cpp
@@ -963,9 +963,8 @@ void QgsDxfExport::writeEntities()
963
const QgsAbstractVectorLayerLabeling *labeling = vl->labeling();
964
QgsDxfLabelProvider *lp = nullptr;
965
QgsDxfRuleBasedLabelProvider *rblp = nullptr;
966
- if ( dynamic_cast<const QgsRuleBasedLabeling*>( labeling ) )
+ if ( const QgsRuleBasedLabeling *rbl = dynamic_cast<const QgsRuleBasedLabeling*>( labeling ) )
967
{
968
- const QgsRuleBasedLabeling *rbl = dynamic_cast<const QgsRuleBasedLabeling*>( labeling );
969
rblp = new QgsDxfRuleBasedLabelProvider( *rbl, vl, this );
970
rblp->reinit( vl );
971
engine.addProvider( rblp );
0 commit comments