Skip to content

Commit

Permalink
Merge pull request #44504 from qgis/backport-44503-to-release-3_20
Browse files Browse the repository at this point in the history
[Backport release-3_20] Add safety check
  • Loading branch information
m-kuhn committed Aug 2, 2021
2 parents c76516b + 7a43648 commit 9d2bcfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/pal/pointset.cpp
Expand Up @@ -558,6 +558,8 @@ void PointSet::offsetCurveByDistance( double distance )
try
{
newGeos = GEOSOffsetCurve_r( geosctxt, mGeos, distance, 0, GEOSBUF_JOIN_MITRE, 2 );
if ( !newGeos )
return;

// happens sometime, if the offset curve self-intersects
if ( GEOSGeomTypeId_r( geosctxt, newGeos ) == GEOS_MULTILINESTRING )
Expand Down

0 comments on commit 9d2bcfa

Please sign in to comment.