Skip to content

Commit 87c9e18

Browse files
committed
dxf export: don't label invisible features (fixes #19604)
(cherry picked from commit c389fad)
1 parent db82317 commit 87c9e18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/dxf/qgsdxfexport.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,10 @@ void QgsDxfExport::writeEntities()
10721072
QString lName( dxfLayerName( attrIdx < 0 ? layerName( vl ) : fet.attribute( attrIdx ).toString() ) );
10731073

10741074
sctx.setFeature( &fet );
1075+
1076+
if ( !renderer->willRenderFeature( fet, ctx ) )
1077+
continue;
1078+
10751079
if ( mSymbologyExport == NoSymbology )
10761080
{
10771081
addFeature( sctx, ct, lName, nullptr, nullptr ); // no symbology at all

0 commit comments

Comments
 (0)