Skip to content
Permalink
Browse files

Fix reshape assertion if reshape line does not intersect twice

  • Loading branch information
mhugent committed Jun 8, 2015
1 parent 35834e8 commit 77d68b0d6c63e7b03e7b265e9ff662b3c48705ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeos.cpp
@@ -1558,7 +1558,7 @@ QgsAbstractGeometryV2* QgsGeos::reshapeGeometry( const QgsLineStringV2& reshapeW
}
else
{
newGeoms[i] = GEOSGeom_clone_r( geosinit.ctxt, GEOSGetGeometryN( mGeos, i ) );
newGeoms[i] = GEOSGeom_clone_r( geosinit.ctxt, GEOSGetGeometryN_r( geosinit.ctxt, mGeos, i ) );
}
}
GEOSGeom_destroy_r( geosinit.ctxt, reshapeLineGeos );

1 comment on commit 77d68b0

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on 77d68b0 Jun 8, 2015

@mhugent thanks! Do you think qgsgeos.cpp:1910 should be using GEOSGeom_clone_r instead of GEOSGeom_clone also?

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