Skip to content
Permalink
Browse files

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

E.g. when it has only one vertex
  • Loading branch information
nyalldawson committed Oct 8, 2020
1 parent 03fdc0c commit f6eed85729a8cbf913155ae16df7499f688ba0fa
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/3d/symbols/qgsline3dsymbol_p.cpp
@@ -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 )
{

0 comments on commit f6eed85

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