Skip to content
Permalink
Browse files

Add safety check

  • Loading branch information
mhugent committed Apr 20, 2018
1 parent 6564aec commit aa02ad264284770794ba75c4d96c0d873a868beb
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/dxf/qgsdxfexport.cpp
@@ -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();

0 comments on commit aa02ad2

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