Skip to content

Commit 3405bc1

Browse files
committedNov 19, 2017
Fix broken export of DXF labels
1 parent 4143ab6 commit 3405bc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/dxf/qgsdxfexport.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,10 @@ void QgsDxfExport::writeEntities()
10141014
rblp = nullptr;
10151015
}
10161016
}
1017-
else
1017+
else if ( labeling )
10181018
{
1019-
lp = new QgsDxfLabelProvider( vl, QString(), this, nullptr );
1019+
QgsPalLayerSettings settings = labeling->settings();
1020+
lp = new QgsDxfLabelProvider( vl, QString(), this, &settings );
10201021
engine.addProvider( lp );
10211022

10221023
if ( !lp->prepare( ctx, attributes ) )

0 commit comments

Comments
 (0)
Please sign in to comment.