Skip to content

Commit

Permalink
Add safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Apr 20, 2018
1 parent 6564aec commit aa02ad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -4003,6 +4003,11 @@ void QgsDxfExport::addGeometryGeneratorSymbolLayer( QgsSymbolV2RenderContext &ct
QgsExpression geomExpr( gg->geometryExpression() );
geomExpr.prepare( &expressionContext );
QgsGeometry geom = geomExpr.evaluate( &expressionContext ).value<QgsGeometry>();
if ( geom.isEmpty() )
{
return;
}

f.setGeometry( geom );

QgsSymbolV2* symbol = gg->subSymbol();
Expand Down

0 comments on commit aa02ad2

Please sign in to comment.