Skip to content

Commit

Permalink
Fix broken export of DXF labels
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 4143ab6 commit 3405bc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -1014,9 +1014,10 @@ void QgsDxfExport::writeEntities()
rblp = nullptr;
}
}
else
else if ( labeling )
{
lp = new QgsDxfLabelProvider( vl, QString(), this, nullptr );
QgsPalLayerSettings settings = labeling->settings();
lp = new QgsDxfLabelProvider( vl, QString(), this, &settings );
engine.addProvider( lp );

if ( !lp->prepare( ctx, attributes ) )
Expand Down

0 comments on commit 3405bc1

Please sign in to comment.