Skip to content
Permalink
Browse files

Avoid working on temporary geometries

  • Loading branch information
m-kuhn committed Mar 1, 2019
1 parent c597ad1 commit 3efd4a886b5dd7e58501146c9dfa9c48e6d7c08a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/analysis/vector/geometry_checker/qgsgeometrycheckerror.cpp
@@ -53,7 +53,8 @@ QgsGeometryCheckError::QgsGeometryCheckError( const QgsGeometryCheck *check,
{
if ( vidx.part != -1 )
{
mGeometry = QgsGeometry( QgsGeometryCheckerUtils::getGeomPart( layerFeature.geometry().constGet(), vidx.part )->clone() );
const QgsGeometry geom = layerFeature.geometry();
mGeometry = QgsGeometry( QgsGeometryCheckerUtils::getGeomPart( geom.constGet(), vidx.part )->clone() );
}
else
{

0 comments on commit 3efd4a8

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