Skip to content
Permalink
Browse files

Avoid working on temporary geometries

  • Loading branch information
m-kuhn committed Mar 18, 2019
1 parent ecd1fbf commit 2ae8f3659fc639efe3a86c5cdffb0a71d2d08e20
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 2ae8f36

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