Skip to content

Commit

Permalink
dxf export: fix layer assignment (fixes #17126; followup 92091c5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 18, 2017
1 parent c19fb1c commit 15bc5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -1003,7 +1003,7 @@ void QgsDxfExport::writeEntities()
renderer->startRender( ctx, vl->fields() );

QSet<QString> attributes = renderer->usedAttributes( ctx );
int attrIdx = mLayerNameAttribute.value( vl->id(), 1 );
int attrIdx = mLayerNameAttribute.value( vl->id(), -1 );
if ( vl->fields().exists( attrIdx ) )
{
QString layerAttr = vl->fields().at( attrIdx ).name();
Expand Down

0 comments on commit 15bc5ed

Please sign in to comment.