Skip to content

Commit

Permalink
Fix DXF export issue when an empty layer is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 8cf9f8f commit 4143ab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -512,6 +512,9 @@ int QgsDxfExport::writeToFile( QIODevice *d, const QString &encoding )
continue;

QgsRectangle layerExtent = vl->extent();
if ( layerExtent.isEmpty() )
continue;

layerExtent = mMapSettings.layerToMapCoordinates( vl, layerExtent );

if ( mExtent.isEmpty() )
Expand Down

0 comments on commit 4143ab6

Please sign in to comment.