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

(cherry picked from commit f6eed85)
  • Loading branch information
nyalldawson committed Oct 11, 2020
1 parent aa014d9 commit d4c963e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/3d/symbols/qgsline3dsymbol_p.cpp
Expand Up @@ -115,6 +115,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 d4c963e

Please sign in to comment.