Skip to content

Commit

Permalink
[3d] Fix crash when line feature cannot be buffered
Browse files Browse the repository at this point in the history
E.g. when it has only one vertex
  • Loading branch information
nyalldawson committed Oct 8, 2020
1 parent 03fdc0c commit f6eed85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/3d/symbols/qgsline3dsymbol_p.cpp
Expand Up @@ -120,6 +120,8 @@ void QgsBufferedLine3DSymbolHandler::processFeature( QgsFeature &f, const Qgs3DR

QgsGeos engine( g );
QgsAbstractGeometry *buffered = engine.buffer( mSymbol->width() / 2., nSegments, endCapStyle, joinStyle, mitreLimit ); // factory
if ( !buffered )
return;

if ( QgsWkbTypes::flatType( buffered->wkbType() ) == QgsWkbTypes::Polygon )
{
Expand Down

0 comments on commit f6eed85

Please sign in to comment.