Skip to content
Permalink
Browse files

dxf export: don't label invisible features (fixes #19604)

(cherry picked from commit c389fad)
  • Loading branch information
jef-n committed Feb 22, 2019
1 parent db82317 commit 87c9e18e5677d0d6e2c43d7ecb36afab84ff31fb
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/dxf/qgsdxfexport.cpp
@@ -1072,6 +1072,10 @@ void QgsDxfExport::writeEntities()
QString lName( dxfLayerName( attrIdx < 0 ? layerName( vl ) : fet.attribute( attrIdx ).toString() ) );

sctx.setFeature( &fet );

if ( !renderer->willRenderFeature( fet, ctx ) )
continue;

if ( mSymbologyExport == NoSymbology )
{
addFeature( sctx, ct, lName, nullptr, nullptr ); // no symbology at all

0 comments on commit 87c9e18

Please sign in to comment.
You can’t perform that action at this time.