Skip to content
Permalink
Browse files

dxf export: fix layer assignment (fixes #17126; followup 92091c5)

  • Loading branch information
jef-n committed Sep 18, 2017
1 parent c19fb1c commit 15bc5ed0c34276b350b1af1ea8ca02b5c37cd806
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/dxf/qgsdxfexport.cpp
@@ -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();

0 comments on commit 15bc5ed

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