Skip to content

Commit 4143ab6

Browse files
committedNov 19, 2017
Fix DXF export issue when an empty layer is selected
1 parent 8cf9f8f commit 4143ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/dxf/qgsdxfexport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ int QgsDxfExport::writeToFile( QIODevice *d, const QString &encoding )
512512
continue;
513513

514514
QgsRectangle layerExtent = vl->extent();
515+
if ( layerExtent.isEmpty() )
516+
continue;
517+
515518
layerExtent = mMapSettings.layerToMapCoordinates( vl, layerExtent );
516519

517520
if ( mExtent.isEmpty() )

0 commit comments

Comments
 (0)
Please sign in to comment.