Skip to content
Permalink
Browse files

dxf export: fix layer assignment (fixes #17126; followup 6292c6a)

  • Loading branch information
jef-n committed Sep 18, 2017
1 parent ad82efe commit c81adf8ff08873b4b76bd6bc11120667144e5e7c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/dxf/qgsdxfexport.cpp
@@ -1002,7 +1002,7 @@ void QgsDxfExport::writeEntities()
renderer->startRender( ctx, vl->fields() );

QStringList attributes = renderer->usedAttributes();
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 c81adf8

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