Skip to content

Commit 15bc5ed

Browse files
committed
dxf export: fix layer assignment (fixes #17126; followup 92091c5)
1 parent c19fb1c commit 15bc5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/dxf/qgsdxfexport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ void QgsDxfExport::writeEntities()
10031003
renderer->startRender( ctx, vl->fields() );
10041004

10051005
QSet<QString> attributes = renderer->usedAttributes( ctx );
1006-
int attrIdx = mLayerNameAttribute.value( vl->id(), 1 );
1006+
int attrIdx = mLayerNameAttribute.value( vl->id(), -1 );
10071007
if ( vl->fields().exists( attrIdx ) )
10081008
{
10091009
QString layerAttr = vl->fields().at( attrIdx ).name();

0 commit comments

Comments
 (0)