Skip to content
Permalink
Browse files

Fix DXF export issue when an empty layer is selected

  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 8cf9f8f commit 4143ab6e64bbd9bd15264eafa3d749372aeab1c7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/dxf/qgsdxfexport.cpp
@@ -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() )

0 comments on commit 4143ab6

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