@@ -3787,6 +3787,8 @@ void QgsDxfExport::addFeature( QgsSymbolV2RenderContext& ctx, const QgsCoordinat
3787
3787
case QgsWKBTypes::CircularString:
3788
3788
case QgsWKBTypes::CompoundCurve:
3789
3789
tempGeom = geom->segmentize ();
3790
+ if ( !tempGeom )
3791
+ break ;
3790
3792
FALLTHROUGH;
3791
3793
case QgsWKBTypes::LineString:
3792
3794
if ( !qgsDoubleNear ( offset, 0.0 ) )
@@ -3805,6 +3807,8 @@ void QgsDxfExport::addFeature( QgsSymbolV2RenderContext& ctx, const QgsCoordinat
3805
3807
3806
3808
case QgsWKBTypes::MultiCurve:
3807
3809
tempGeom = geom->segmentize ();
3810
+ if ( !tempGeom )
3811
+ break ;
3808
3812
FALLTHROUGH;
3809
3813
case QgsWKBTypes::MultiLineString:
3810
3814
{
@@ -3829,6 +3833,8 @@ void QgsDxfExport::addFeature( QgsSymbolV2RenderContext& ctx, const QgsCoordinat
3829
3833
3830
3834
case QgsWKBTypes::CurvePolygon:
3831
3835
tempGeom = geom->segmentize ();
3836
+ if ( !tempGeom )
3837
+ break ;
3832
3838
FALLTHROUGH;
3833
3839
case QgsWKBTypes::Polygon:
3834
3840
{
@@ -3887,6 +3893,8 @@ void QgsDxfExport::addFeature( QgsSymbolV2RenderContext& ctx, const QgsCoordinat
3887
3893
{
3888
3894
case QgsWKBTypes::CurvePolygon:
3889
3895
tempGeom = tempGeom->segmentize ();
3896
+ if ( !tempGeom )
3897
+ break ;
3890
3898
FALLTHROUGH;
3891
3899
case QgsWKBTypes::Polygon:
3892
3900
writePolygon ( tempGeom->coordinateSequence ().at ( 0 ), layer, " SOLID" , brushColor );
0 commit comments