Skip to content
Permalink
Browse files

[3d] Fix crash when line feature cannot be buffered

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 d4c963e1c2fdc497dba038896caf2b3f975240ff
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/3d/symbols/qgsline3dsymbol_p.cpp
@@ -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 )
{

0 comments on commit d4c963e

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