Skip to content

Commit c81adf8

Browse files
committedSep 18, 2017
dxf export: fix layer assignment (fixes #17126; followup 6292c6a)
1 parent ad82efe commit c81adf8

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
@@ -1002,7 +1002,7 @@ void QgsDxfExport::writeEntities()
10021002
renderer->startRender( ctx, vl->fields() );
10031003

10041004
QStringList attributes = renderer->usedAttributes();
1005-
int attrIdx = mLayerNameAttribute.value( vl->id(), 1 );
1005+
int attrIdx = mLayerNameAttribute.value( vl->id(), -1 );
10061006
if ( vl->fields().exists( attrIdx ) )
10071007
{
10081008
QString layerAttr = vl->fields().at( attrIdx ).name();

0 commit comments

Comments
 (0)
Please sign in to comment.